#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):
In Kautz digraph example, one of the edges, ('101', '010', '0'), was
deleted by reverse_edge because Kautz does not allow parallel
edges:[[BR]][[BR]]sage: d = digraphs.Kautz(2,3)[[BR]]sage:
d.allows_multiple_edges()[[BR]]False[[BR]]sage: d.has_edge('101', '010',
'0')[[BR]]True[[BR]]sage: d.has_edge('010', '101',
'1')[[BR]]True[[BR]]sage: d.reverse_edge('010', '101', '1',
inplace=True)[[BR]]sage: d.has_edge('101', '010',
'0')[[BR]]False[[BR]]sage: d.has_edge('101', '010',
'1')[[BR]]True[[BR]][[BR]][[BR]]Replying to ![comment:20 dcoudert]:[[BR]]>
Not working for digraphs with labels on edges
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13440#comment:21>
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.