NetworkX

Previous topic

networkx.algorithms.components.strongly_connected.condensation

Next topic

networkx.algorithms.components.weakly_connected.number_weakly_connected_components

networkx.algorithms.components.weakly_connected.is_weakly_connected

is_weakly_connected(G)

Test directed graph for weak connectivity.

Parameters:

G : NetworkX Graph

A directed graph.

Returns:

connected : bool

True if the graph is weakly connected, False otherwise.

See also

strongly_connected_components

Notes

For directed graphs only.