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
see "Bug in Graph.matching" thread on sage-devel:
sage: sage: g = graphs.PathGraph(3) # an unweighted graph sage: sage: g.matching(value_only=True, use_edge_labels=True) 1.0 sage: sage: g.matching(value_only=True, use_edge_labels=False) 2
as mentioned there, the bug is in the line return Integer(len(d)) near line 6786 in sage/graphs/generic_graph.py.
return Integer(len(d))
sage/graphs/generic_graph.py
It should be return Integer(len(d)/2)
return Integer(len(d)/2)
CC: @nathanncohen @jasongrout
Component: graph theory
Author: Dmitrii Pasechnik
Reviewer: David Coudert
Merged: sage-5.3.rc1
Issue created by migration from https://trac.sagemath.org/ticket/13402
The text was updated successfully, but these errors were encountered:
Attachment: 13402.patch.gz
Sorry, something went wrong.
The patch is working properly for me, so I give positive review.
Maybe add the example given in the description as a doctest?
jasongrout
rlmill
nathanncohen
No branches or pull requests
see "Bug in Graph.matching" thread on sage-devel:
as mentioned there, the bug is in the line
return Integer(len(d))
near line 6786 insage/graphs/generic_graph.py
.It should be
return Integer(len(d)/2)
CC: @nathanncohen @jasongrout
Component: graph theory
Author: Dmitrii Pasechnik
Reviewer: David Coudert
Merged: sage-5.3.rc1
Issue created by migration from https://trac.sagemath.org/ticket/13402
The text was updated successfully, but these errors were encountered: