Returns the number of attracting components in G.
G
The graph to be analyzed.
The number of attracting components in G.
If the input graph is undirected.
See also
attracting_components
is_attracting_component