#11694: Unlabelled edges are doubled when creating multiedge graph
-----------------------------+----------------------------------------------
    Reporter:  iandrus       |         Owner:  iandrus                       
        Type:  defect        |        Status:  closed                        
    Priority:  major         |     Milestone:  sage-duplicate/invalid/wontfix
   Component:  graph theory  |    Resolution:  duplicate                     
    Keywords:                |   Work_issues:                                
    Upstream:  N/A           |      Reviewer:  Ivan Andrus, Nathann Cohen    
      Author:                |        Merged:                                
Dependencies:                |  
-----------------------------+----------------------------------------------
Changes (by jdemeyer):

  * status:  positive_review => closed
  * resolution:  => duplicate


Old description:

> When creating a graph from a list of edges, if the edges are not labelled
> they get doubled when multiedges are allowed.  It works fine if they are
> labelled.
>
> {{{
> sage: g=Graph([[1,2],[1,2,],[2,3]])
> sage: g.num_edges()
> 6
> sage: g=Graph([[1,2,'a'],[1,2,'b'],[2,3,'c']])
> sage: g.num_edges()
> 3
> }}}

New description:

 When creating a graph from a list of edges, if the edges are not labelled
 they get doubled when multiedges are allowed.  It works fine if they are
 labelled.

 {{{
 sage: g=Graph([[1,2],[1,2,],[2,3]])
 sage: g.num_edges()
 6
 sage: g=Graph([[1,2,'a'],[1,2,'b'],[2,3,'c']])
 sage: g.num_edges()
 3
 }}}

 See #11693.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11694#comment:8>
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