pub fn count_connected_components<N, E>(g: &Graph<N, E>) -> usizewhere N: Clone,
Count the number of connected components in an undirected graph.