graph-algorithms
graph-algorithms copied to clipboard
cpp/first_half/CC.cc CC(const Graph &) , only declare not pass parameter
cpp/first_half/CC.cc CC(const Graph &) , only declare not pass parameter
code is
CC(const Graph &) : G(G), ccnt(0), id(G.V(), -1) { // fragment error
for (int v = 0; v < G.V(); v++) {
// cout << "CC in v=" << v << ", id[v]=" << id[v] << endl;
if (id[v] == -1) {
ccR(v);
ccnt++;
}
}
}