Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
konpklr committed Jul 1, 2024
1 parent da69ef2 commit b7ec4b9
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions mt-kahypar/partition/coarsening/multilevel_coarsener.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,32 +220,9 @@ class MultilevelCoarsener : public ICoarsener,
_progress_bar += (num_hns_before_pass - current_num_nodes);
*/
_timer.start_timer("contraction", "Contraction");
// Perform parallel contraction
std::cout << "c0: \n"; /*current_hg.nodeWeight(0).weights[0] << " " << current_hg.nodeWeight(0).weights[1] << "\n";*/
for(int i = 0; i < cluster_ids.size(); i++){
std::cout << cluster_ids[i] << " ";
}
_uncoarseningData.performMultilevelContraction(std::move(cluster_ids), true /* deterministic */, round_start);
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;
}
std::cout << "c0: \n"; /*current_hg.nodeWeight(0).weights[0] << " " << current_hg.nodeWeight(0).weights[1] << "\n";*/
/*for(int i = 0; i < cluster_ids.size(); i++){
std::cout << cluster_ids[i] << " ";
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++){
if(tmp[i] != chg.nodeWeight(i)){
std::cout << "difference:" << i << " " << tmp[i].weights[0] << " " << tmp[i].weights[1] << " " << chg.nodeWeight(i).weights[0] << " " << chg.nodeWeight(i).weights[1] << "\n";
while(true){}}
}*/
_timer.stop_timer("contraction");

++_pass_nr;
return true;
}
Expand Down

0 comments on commit b7ec4b9

Please sign in to comment.