-
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
[BUG] mincut() gives wrong result #324
Comments
Thank you for filing the issue! It seems you wrote your own version of |
Related: #105 |
I ported the first C++ implementation from Wikipedia (seem pretty solid and nice to me. iirc i only exchanged the dense for a sparse matrix). I tried crosschecking it with the packages |
Attempting to use the
mincut()
in todays advent of code problem I had to discover that it was not actually finding the min-cut.The provided graph has a min-cut of 3 edges.
mincut()
on the other side returns another cut with 4 edges.The following excerpt computes the true min-cut via
karger_min_cut
, and also computes the wrong one withmincut()
of length 4.The whole code+graph data (file
25.in
) can be found here.Julia 1.10rc3 with Graphs 1.9.0.
The text was updated successfully, but these errors were encountered: