File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 66// ! @code
77// ! {
88// ! vector<vi> adj(n);
9- // ! edge_cd(adj, [&](const vector<vi> & adj,
10- // ! int cent, int split ) {});
9+ // ! edge_cd(adj, [&](const auto & adj,
10+ // ! int cent, int m ) {});
1111// ! }
1212// ! vector<basic_string<int>> adj(n);
13- // ! edge_cd(adj, [&](const vector<basic_string<int>>&
14- // ! adj, int cent, int split) {
15- // ! // subtrees of prefix [0, split) of adj[cent]
16- // ! // are the first edge-set
17- // ! // subtrees of suffix [split, sz(adj[cent]))
18- // ! // of adj[cent] are the second edge-set
13+ // ! edge_cd(adj, [&](const auto& adj, int cent, int m) {
14+ // ! // subtrees of [0, m) of adj[cent]: 1st edge-set
15+ // ! // subtrees of [m, sz(adj[cent])): 2nd edge-set
1916// ! });
2017// ! @endcode
2118// ! handle single-edge-paths separately
You can’t perform that action at this time.
0 commit comments