Skip to content

Commit af60ad5

Browse files
committed
Flows: fix issue with tracking of cut hyperedges
If flow refinement terminates with equal cut, changed cut hyperedges should still be added to the quotient graph.
1 parent 5f7b212 commit af60ad5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mt-kahypar/partition/refinement/flows/flow_refinement_scheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ HyperedgeWeight FlowRefinementScheduler<GraphAndGainTypes>::applyMoves(const uin
550550

551551
_apply_moves_lock.unlock();
552552

553-
if ( sequence.state == MoveSequenceState::SUCCESS && improvement > 0 ) {
553+
if ( sequence.state == MoveSequenceState::SUCCESS ) {
554554
_quotient_graph.addNewCutHyperedges(*_phg, new_cut_hes);
555555
_stats.total_improvement += improvement;
556556
}

0 commit comments

Comments
 (0)