graph->graphcomponents bugfix