We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b44b453 commit e473eccCopy full SHA for e473ecc
library/graphs/bridges_cuts/bcc_callback.hpp
@@ -27,6 +27,19 @@
27
//! bridge_tree[uf.find(i)] += uf.find(v);
28
//! }
29
//!
30
+//! {
31
+//! // ********* IF NO MULTIPLE EDGES *********
32
+//! vector<vi> adj(n);
33
+//! vector<int> cc_id(n);
34
+//! bcc_callback(adj, [&](const vi& nodes) {
35
+//! if (ssize(nodes) == 2) {
36
+//! // nodes[0] <=> nodes[1] is a bridge
37
+//! return;
38
+//! }
39
+//! for (int v : nodes) cc_id[v] = nodes.back();
40
+//! });
41
42
+//!
43
//! vector<basic_string<int>> adj(n);
44
//! vector<basic_string<int>> block_vertex_tree(2 * n);
45
//! int bcc_id = n;
0 commit comments