[−][src]Function traitgraph::components::decompose_weakly_connected_components
pub fn decompose_weakly_connected_components<Graph: Default + MutableGraphContainer + StaticGraph>(
graph: &Graph
) -> Vec<Graph> where
Graph::NodeData: Clone,
Graph::EdgeData: Clone,
Returns the weakly connected components of a graph.
If the graph is empty, no WCCs are returned. Otherwise, the WCCs are cloned into new graphs, without preserving the node or edge indices.