networkx.is_strongly_connected
networkx.strongly_connected_components
Return the number of connected components in G.
For undirected graphs only.