NetworkX

Previous topic

is_strongly_connected

Next topic

strongly_connected_components

number_strongly_connected_components

number_strongly_connected_components(G)[source]

Return number of strongly connected components in graph.

Parameters :

G : NetworkX graph

A directed graph.

Returns :

n : integer

Number of strongly connected components

See also

connected_components

Notes

For directed graphs only.