From 4a03f67c642f5e0e8a265b742c76866db6949f36 Mon Sep 17 00:00:00 2001 From: konpklr Date: Sat, 29 Jun 2024 13:00:47 -0400 Subject: [PATCH] fixed full level hierarchy readin --- mt-kahypar/partition/coarsening/multilevel_coarsener.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mt-kahypar/partition/coarsening/multilevel_coarsener.h b/mt-kahypar/partition/coarsening/multilevel_coarsener.h index 982300eb5..14b2d2ada 100644 --- a/mt-kahypar/partition/coarsening/multilevel_coarsener.h +++ b/mt-kahypar/partition/coarsening/multilevel_coarsener.h @@ -225,6 +225,9 @@ class MultilevelCoarsener : public ICoarsener, Hypergraph& chg = Base::currentHypergraph(); //if(chg.initialNumNodes() == current_hg.initialNumNodes()) std::cout << 1/0 << "\n"; std::vector tmp(chg.initialNumNodes(), 0); + for(HypernodeID hn : current_hg.nodes()){ + 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"; tmp[cluster_ids[i]] += current_hg.nodeWeight(i);