Skip to main content

component_count

Function component_count 

Source
pub fn component_count(graph: &Graph) -> usize
Expand description

Returns the number of connected components.

§Arguments

  • graph - The graph

§Returns

Count of connected components