Skip to content

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

@Zeping-Jian

Description

@Zeping-Jian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions