Skip to main content

biconnectivity_of

Function biconnectivity_of 

Source
pub fn biconnectivity_of(graph: &BiAdjacentGraph) -> Biconnectivity
Expand description

Returns the bridges, articulation points and biconnected components of graph, read as undirected.

All three come from one depth-first search, so there is no cheaper function for one of them alone; Biconnectivity describes them. The search follows the edges of every node in both directions, so it takes a BiAdjacentGraph. For a plain Graph, call components::biconnectivity_of(&BiAdjacentGraph::of(&graph)). Uses the algorithm of Hopcroft and Tarjan, without recursion.

Time: O(node_count + edge_count). Memory: up to 8 x edge_count + 20 x node_count bytes for the result; while it runs, 8 x edge_count + 63 x node_count bytes more.