Return the number of connected components.
See also
connected_components()
Notes
For undirected graphs only.