Skip to content

Commit 9cf156f

Browse files
committed
golf the docs
1 parent aa9c377 commit 9cf156f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

library/trees/edge_cd.hpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@
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

0 commit comments

Comments
 (0)