We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa9c377 commit 9cf156fCopy full SHA for 9cf156f
1 file changed
library/trees/edge_cd.hpp
@@ -6,16 +6,13 @@
6
//! @code
7
//! {
8
//! vector<vi> adj(n);
9
-//! edge_cd(adj, [&](const vector<vi>& adj,
10
-//! int cent, int split) {});
+//! edge_cd(adj, [&](const auto& adj,
+//! int cent, int m) {});
11
//! }
12
//! 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
+//! edge_cd(adj, [&](const auto& adj, int cent, int m) {
+//! // subtrees of [0, m) of adj[cent]: 1st edge-set
+//! // subtrees of [m, sz(adj[cent])): 2nd edge-set
19
//! });
20
//! @endcode
21
//! handle single-edge-paths separately
0 commit comments