Skip to main content

connected_components

Function connected_components 

Source
pub fn connected_components(graph: &Graph) -> Vec<Vec<NodeId>>
Expand description

Returns all connected components in the graph.

§Arguments

  • graph - The graph

§Returns

Vector of components, where each component is a vector of node IDs