Skip to content

Commit

Permalink
Fix localFM
Browse files Browse the repository at this point in the history
  • Loading branch information
T3C42 committed Dec 18, 2024
1 parent 5c625ed commit 98d1de7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mt-kahypar/dynamic/strategies/localFM_factor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 98d1de7

Please sign in to comment.