Skip to content

Commit 9196c60

Browse files
authored
Update shallowest_decomp_tree.hpp
1 parent 2d1d619 commit 9196c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/trees/shallowest_decomp_tree.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void shallowest(auto& adj, auto f) {
2525
adj.assign(sz(adj), {});
2626
for (const vi& vec : order)
2727
for (int v : vec) {
28-
f(v);
2928
for (int u : cpy[v]) adj[u].push_back(v);
29+
f(v);
3030
}
3131
}

0 commit comments

Comments
 (0)