The graph to examine.
The component map to populate.
Returns the number of components in the graph.
See Implementation