components()
GraphRep
struct GraphRep { ... int nC; // # connected components int *cc; // which component contains each vertex ... // i.e. array [0..nV-1] of 0..nC-1 }