Skip to main content

strongly_connected_components

Function strongly_connected_components 

Source
pub fn strongly_connected_components(g: &Graph) -> Vec<usize>
Expand description

Strongly connected components by Tarjan’s algorithm (iterative, O(V + E)). Returns the component label of each vertex; labels are a reverse topological order of the condensation (component 0 has no edges to other components).