#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):
Should I change the code to change digraph self to allow parallel edges?
Thank you.
When the Kautz digraph is defined to allow parallel edges, reverse_edges()
and reverse() both return a digraph with the same edges:
sage: d = digraphs.Kautz(2,3)[[BR]]sage: d1 = !DiGraph({},
multiedges=True)[[BR]]sage: d1.add_edges(d.edges())[[BR]]sage: d1r =
d1.reverse_edges(d1.edges())[[BR]]sage: d.reverse().edges() ==
d1r.edges()[[BR]]True
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13440#comment:22>
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.