#13440: Adding reverse_edge() function to DiGraph
---------------------------------+------------------------------------------
       Reporter:  egunawan       |         Owner:  jason, ncohen, rlm
           Type:  enhancement    |        Status:  needs_work        
       Priority:  major          |     Milestone:  sage-5.7          
      Component:  graph theory   |    Resolution:                    
       Keywords:  digraph        |   Work issues:                    
Report Upstream:  N/A            |     Reviewers:  Gregg Musiker     
        Authors:  Emily Gunawan  |     Merged in:                    
   Dependencies:                 |      Stopgaps:                    
---------------------------------+------------------------------------------

Comment (by egunawan):

 Replying to [comment:23 dcoudert]:

 Thank you for the reply. For reverse_edge (not reverse_edges), is the
 following behavior OK?

         If !``self!`` does not allow multiple edges (such as the following
 example),[[BR]]        then function may delete the input
 edge::[[BR]]        [[BR]]            sage: D = !DiGraph( [(1,2), (2,1)]
 )[[BR]]            sage: D.edges()[[BR]]            [(1, 2, None), (2, 1,
 None)][[BR]]            sage: re = D.reverse_edge(1,2) [[BR]]           
 sage: re.edges()[[BR]]            [(2, 1, None)]

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13440#comment:24>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to