-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix mincut (fixes #324) #327
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #327 +/- ##
=======================================
Coverage 97.30% 97.30%
=======================================
Files 115 115
Lines 6796 6796
=======================================
Hits 6613 6613
Misses 183 183 ☔ View full report in Codecov by Sentry. |
@etiennedeg did you check out #325? haven't had time to review yet |
Yes, his implementation drops the heuristics but the heuristic was not at fault. I noticed that he struggled to understand my code, so I added more comments |
It's not true I did not drop the heuristic. What is true that I did not understand is the whole algorithm, esp. the part with the Looking at this fix I could imagine it being still necessary for my patch though.. |
So I agree that updating |
If you come to the conclusion you don't like my simplifications bringing it in line with Stoer-Wagner or they are not working with the heuristic let me know so I will close my PR and prepare a seperate one with the performance fixes alone. |
Closing in favor of #325 (see #325 (comment)) |
When a vertex is merged during the cut of the phase, if the current vertex is not kept, we need to switch to the kept vertex
fixes #324