#9807: merge_vertices behavior in a graph with loops
------------------------------+---------------------------------------------
   Reporter:  tobiasljohnson  |       Owner:  jason, ncohen, rlm   
       Type:  defect          |      Status:  new                  
   Priority:  minor           |   Milestone:  sage-4.5.3           
  Component:  graph theory    |    Keywords:  merge_vertices, loops
     Author:                  |    Upstream:  N/A                  
   Reviewer:                  |      Merged:                       
Work_issues:                  |  
------------------------------+---------------------------------------------
 Suppose G is a graph with loops permitted containing the edge (0, 1).  I
 would expect that G.merge_vertices([0, 1]) would create a loop (0, 0), but
 it doesn't:
 {{{
 sage: G = Graph(loops = True)
 sage: G.add_edge(0, 1)
 sage: G.merge_vertices([0, 1])
 sage: G.edges()
 []
 }}}
 I think either we should change this, or we should write explicitly in the
 documentation that merge_vertices doesn't create self-loops even when G
 allows them.

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