Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

number_attracting_components

number_attracting_components(G)[source]

Returns the number of attracting components in G.

Parameters:G (DiGraph, MultiDiGraph) – The graph to be analyzed.
Returns:n – The number of attracting components in G.
Return type:int