Note

This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.

rustworkx.is_connected#

is_connected(graph, /)#

Check if the graph is connected.

Parameters:

graph (PyGraph) – The graph to check if it is connected.

Returns:

Whether the graph is connected or not

Return type:

bool

Raises:

NullGraph – If an empty graph is passed in