is_connected
connected_components
Enter search terms or a module, class or function name.
Return number of connected components in graph.
G : NetworkX Graph
An undirected graph.
n : integer
Number of connected components
See also
Notes
For undirected graphs only.