NetworkX

Previous topic

networkx.algorithms.components.weakly_connected.is_weakly_connected

Next topic

networkx.algorithms.components.weakly_connected.weakly_connected_components

networkx.algorithms.components.weakly_connected.number_weakly_connected_components

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