NetworkX

Previous topic

Traversal

Next topic

networkx.number_connected_components

Quick search

networkx.is_connected

is_connected(G)
Return True if G is connected. For undirected graphs only.