Function daggy::petgraph::algo::connected_components
[−]
[src]
pub fn connected_components<N, E, Ty, Ix>(g: &Graph<N, E, Ty, Ix>) -> usize where Ix: IndexType, Ty: EdgeType
Return the number of connected components of the graph.
For a directed graph, this is the weakly connected components.