number_attracting_components# number_attracting_components(G)[source]# Returns the number of attracting components in G. Parameters: GDiGraph, MultiDiGraphThe graph to be analyzed. Returns: nintThe number of attracting components in G. Raises: NetworkXNotImplementedIf the input graph is undirected. See also attracting_components is_attracting_component