Skip to content

Commit 788b6d1

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 3469ff4 commit 788b6d1

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
@@ -554,7 +554,7 @@ HyperedgeWeight FlowRefinementScheduler<GraphAndGainTypes>::applyMoves(const uin
554554

555555
_apply_moves_lock.unlock();
556556

557-
if ( sequence.state == MoveSequenceState::SUCCESS && improvement > 0 ) {
557+
if ( sequence.state == MoveSequenceState::SUCCESS ) {
558558
_quotient_graph.addNewCutHyperedges(*_phg, new_cut_hes);
559559
_stats.total_improvement += improvement;
560560
}

0 commit comments

Comments
 (0)