We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.edge_cut(algorithm='LP')
sage: g = graphs.PetersenGraph() sage: g.edge_cut(0, 3, vertices=True, use_edge_labels=True) [3, [(0, 1, None), (0, 4, None), (0, 5, None)], [[0], [1, 2, 3, 4, 5, 6, 7, 8, 9]]] sage: g.edge_cut(0, 3, vertices=True, use_edge_labels=True, algorithm="FF") [3, [(0, 1, None), (0, 4, None), (0, 5, None)], [[0], [1, 2, 3, 4, 5, 6, 7, 8, 9]]] sage: g.edge_cut(0, 3, vertices=True, use_edge_labels=True, algorithm="LP") (3, [(2, 3), (3, 4), (3, 8)], [[0, 1, 2, 4, 5, 6, 7, 8, 9], [3]])
.edge_cut(algorithm='LP') should return edges with labels, consistently with other algorithms.
Edges are reported as tuples of vertices without labels.
It breaks other methods that depend on .edge_cut such as .gomory_hu_tree(algorithm="LP"), which fails with an error:
.edge_cut
.gomory_hu_tree(algorithm="LP")
ValueError: not enough values to unpack (expected 3, got 2)
as reported at https://ask.sagemath.org/question/79320/
The text was updated successfully, but these errors were encountered:
edge_cut
I pushed a fix in #38725.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Steps To Reproduce
Expected Behavior
.edge_cut(algorithm='LP')
should return edges with labels, consistently with other algorithms.Actual Behavior
Edges are reported as tuples of vertices without labels.
Additional Information
It breaks other methods that depend on
.edge_cut
such as.gomory_hu_tree(algorithm="LP")
, which fails with an error:as reported at https://ask.sagemath.org/question/79320/
Environment
Checklist
The text was updated successfully, but these errors were encountered: