NetworkX

Previous topic

is_weakly_connected

Next topic

weakly_connected_components

number_weakly_connected_components

number_weakly_connected_components(G)[source]

Return the number of connected components in G. For directed graphs only.