graph-algorithms icon indicating copy to clipboard operation
graph-algorithms copied to clipboard

cpp/first_half/CC.cc CC(const Graph &) , only declare not pass parameter

Open Zeping-Jian opened this issue 7 months ago • 0 comments

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++;
            }
        }
    }

Zeping-Jian avatar May 25 '25 14:05 Zeping-Jian