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
Ford Fulkerson algorithm does not handle unconnected vertices correctly + unclear error message + lacks tests #24925
Milestone
Comments
Author: David Coudert |
Commit: |
Branch: u/dcoudert/24925_ford_fulkerson |
comment:1
The isolated vertices where ignored in the construction of the residual graph. Easy to fix. New commits:
|
Changed branch from u/dcoudert/24925_ford_fulkerson to public/ticket/24925 |
Changed keywords from none to digraph |
Reviewer: Darij Grinberg |
comment:2
LGTM, thanks for noticing the bug! |
Changed branch from public/ticket/24925 to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As reported on this ask question, the
_ford_fulkerson
method for graphs does not handle unconnected vertices correctly:To be compared to:
Moreover, the error message is misleading since the vertex is here:
This is because the test is about some
residual
auxiliary graph, notself
.Also, this method lacks test, there are much less than the various proposed options.
Component: graph theory
Keywords: digraph
Author: David Coudert
Branch/Commit:
0d39e1d
Reviewer: Darij Grinberg
Issue created by migration from https://trac.sagemath.org/ticket/24925
The text was updated successfully, but these errors were encountered: