networkx.algorithms.components.connected.is_connected
networkx.algorithms.components.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
connected_components
Notes
For undirected graphs only.