#13402: a bug in matching()
----------------------------+-----------------------------------------------
   Reporter:  dimpase       |             Owner:  jason, ncohen, rlm
       Type:  defect        |            Status:  new               
   Priority:  critical      |         Milestone:  sage-5.4          
  Component:  graph theory  |          Keywords:                    
Work issues:                |   Report Upstream:  N/A               
  Reviewers:                |           Authors:                    
  Merged in:                |      Dependencies:                    
   Stopgaps:                |  
----------------------------+-----------------------------------------------
 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}}}.

 It should be {{{return Integer(len(d)/2)}}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13402>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to