#9809: Graph.num_edges() gives wrong answer
------------------------------+---------------------------------------------
   Reporter:  tobiasljohnson  |       Owner:  someone             
       Type:  defect          |      Status:  new                 
   Priority:  major           |   Milestone:  sage-4.5.3          
  Component:  graph theory    |    Keywords:  num_edges,multiedges
     Author:                  |    Upstream:  N/A                 
   Reviewer:                  |      Merged:                      
Work_issues:                  |  
------------------------------+---------------------------------------------
 If G is a graph with multiedges that contains two copies of an edge e, and
 you delete one of the copies, num_edges() doesn't go down by one.  For
 example,
 {{{
 sage: G = Graph(multiedges = True)
 sage: G.add_edges([(0,1), (0,1)])
 sage: G.delete_edge(0,1)
 sage: G.num_edges()
 2
 sage: G.edges()
 [(0, 1, None)]
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9809>
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