This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.
Test directed graph for weak connectivity.
A directed graph is weakly connected if, and only if, the graph is connected when the direction of the edge between nodes is ignored.
G : NetworkX Graph
A directed graph.
connected : bool
True if the graph is weakly connected, False otherwise.
For directed graphs only.