Bjartensen / root-clustering-focalh

0 stars 0 forks source link

It's awkward that a new clustering object needs to copy Grid cells before use #11

Open Bjartensen opened 5 months ago

Bjartensen commented 5 months ago

The Clustering constructor does this

Clustering::Clustering(Grid *_g){
    g = _g;
    for (auto &v : *g->get_cells()){
        untagged_cells.push_back(v.get());
    }
}

Maybe it should only need to keep track of untagged cells by knowing the difference between tagged cells (?). I don't know which is more efficient.