Skip to main content

strong_connectivity_of

Function strong_connectivity_of 

Source
pub fn strong_connectivity_of(graph: &BiAdjacentGraph) -> StrongConnectivity
Expand description

Returns the strong bridges and strong articulation points of graph. These are the edges and nodes whose removal splits an SCC.

The edges are followed in their direction, as by sccs_of; StrongConnectivity describes the results. The computation also follows them against their direction, so it takes a BiAdjacentGraph. For a plain Graph, call components::strong_connectivity_of(&BiAdjacentGraph::of(&graph)). Uses the algorithm of Italiano, Laura and Santaroni, which finds both from the dominators within each SCC, without recursion.

Time: O((node_count + edge_count) log node_count). Memory: up to 28 x node_count bytes for the result; while it runs, about 80 x node_count bytes more.

ยงPanics

With an invalid argument message if graph has more than 2^30 - 6 nodes.