is_weakly_connected
weakly_connected_components
Enter search terms or a module, class or function name.
Return the number of connected components in G. For directed graphs only.