From 98d1de71cf046a50df53b8c43ce72f49fcf6c500 Mon Sep 17 00:00:00 2001 From: Tobias Kempf Date: Wed, 18 Dec 2024 20:45:00 +0100 Subject: [PATCH] Fix localFM --- mt-kahypar/dynamic/strategies/localFM_factor.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mt-kahypar/dynamic/strategies/localFM_factor.h b/mt-kahypar/dynamic/strategies/localFM_factor.h index 288cb3af3..87d033805 100644 --- a/mt-kahypar/dynamic/strategies/localFM_factor.h +++ b/mt-kahypar/dynamic/strategies/localFM_factor.h @@ -115,11 +115,9 @@ namespace mt_kahypar::dyn { partition_result.valid = true; - const HypernodeID& hn = change.added_nodes[0]; - for (const HypernodeID &hn : change.added_nodes) { + add_node_to_partitioned_hypergraph(hypergraph, context, hn); if (std::find(nodes_to_partition.begin(), nodes_to_partition.end(), hn) == nodes_to_partition.end()) { - add_node_to_partitioned_hypergraph(hypergraph, context, hn); nodes_to_partition.push_back(hn); } }