aryagraph.algorithms.connectivity.is_connected#

aryagraph.algorithms.connectivity.is_connected(g: Graph) → bool[source]#

True when an undirected graph has exactly one connected component.

The empty graph is reported as not connected (networkx raises instead).