Skip to content

Commit

Permalink
fixed full level hierarchy readin
Browse files Browse the repository at this point in the history
  • Loading branch information
konpklr committed Jun 29, 2024
1 parent 225562b commit 40d73b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mt-kahypar/partition/coarsening/multilevel_coarsener.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,12 @@ class MultilevelCoarsener : public ICoarsener,
Hypergraph& chg = Base::currentHypergraph();
//if(chg.initialNumNodes() == current_hg.initialNumNodes()) std::cout << 1/0 << "\n";
std::vector<HypernodeWeight> tmp(chg.initialNumNodes(), 0);
std::cout << "sizes: " << current_hg.initialNumNodes() << " " << chg.initialNumNodes() << "\n";
for(HypernodeID hn : current_hg.nodes()){
if(current_hg.nodeWeight(hn).weights[1] == 0) std::cout << 1/0;
//if(current_hg.nodeWeight(hn).weights[1] == 0) std::cout << 1/0;
}
for(int i = 0; i < cluster_ids.size(); i++){
//if(cluster_ids[i] != ctmp[i]) std::cout << 1/0 << "\n";
if(cluster_ids[i] != ctmp[i]) std::cout << 1/0 << "\n";
tmp[cluster_ids[i]] += current_hg.nodeWeight(i);
}
for(int i = 0; i < tmp.size(); i++){
Expand Down

0 comments on commit 40d73b3

Please sign in to comment.