We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fe30d2 commit 5d6788dCopy full SHA for 5d6788d
library/graphs/bridges_cuts/bcc_callback.hpp
@@ -6,8 +6,9 @@
6
//! vector<pii> edges(m);
7
//! UF uf(n);
8
//! bcc_callback(adj, [&](const vi& nodes) {
9
-//! if (sz(nodes) > 2) // assumes no multiple edges
10
-//! for (int v : nodes) uf.join(v, nodes[0]);
+//! if (sz(nodes) == 2)
+//! return; // bridge assuming no multiple edges
11
+//! for (int v : nodes) uf.join(v, nodes[0]);
12
//! });
13
//! vector<basic_string<int>> bridge_tree(n);
14
//! for (auto [u, v] : edges)
0 commit comments