You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The biconnected components template is pretty neat to quickly get the components, but constructing the block-cut tree isn't very trivial using them. Maybe add some text in notebook / add code to construct the relevant trees using BiconnectedComponents.h.
The callback passed to bicomps to get the bcc's is very un-intuitive. Add a small compute function to generate it from an edgelist (it's in the comments, move it to code).
int eid = 0; ed.resize(N); // global adj list, bcc uses. Maybe move to namespace / modify flow?for each edge (a,b) {
ed[a].emplace_back(b, eid); ed[b].emplace_back(a, eid++);
}
bicomps([\&](const vi\& edgelist) {...}); // edgelist contains the *edges* in each biconnected component.
The text was updated successfully, but these errors were encountered:
The biconnected components template is pretty neat to quickly get the components, but constructing the block-cut tree isn't very trivial using them. Maybe add some text in notebook / add code to construct the relevant trees using BiconnectedComponents.h.
The callback passed to
bicomps
to get the bcc's is very un-intuitive. Add a smallcompute
function to generate it from an edgelist (it's in the comments, move it to code).The text was updated successfully, but these errors were encountered: