Skip to content

Commit 1288218

Browse files
authored
Update shallowest_decomp_tree.hpp
1 parent 80eacd5 commit 1288218

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

library/trees/shallowest_decomp_tree.hpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,5 @@ void shallowest(auto& adj, auto f) {
2424
auto cpy(adj);
2525
adj.assign(sz(adj), {});
2626
for (vi vec : order)
27-
for (int v : vec) {
28-
f(v);
29-
adj[v] = cpy[v];
30-
for (int u : adj[v]) adj[u].push_back(v);
31-
}
27+
for (int v : vec) f(v), adj[v] = cpy[v];
3228
}

0 commit comments

Comments
 (0)