#include #include #include #include "Graph.h" #include "GraphPrivate.h" static int *components(Graph g); int main(void) { Graph g = GraphRead(stdin); printf("Graph:\n"); GraphShow(g); int *componentOf = components(g); for (Vertex v = 0; v < g->nV; v++) { printf("componentOf[%d]: %d\n", v, componentOf[v]); } free(componentOf); GraphFree(g); } static int *components(Graph g) { // TODO return NULL; }