Returns the number of connected components.
An undirected graph.
Number of connected components
See also
connected_components
number_weakly_connected_components
number_strongly_connected_components
Notes
For undirected graphs only.