#12872: A show method for permutations
---------------------------------+------------------------------------------
Reporter: ncohen | Owner: sage-combinat
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.1
Component: combinatorics | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
---------------------------------+------------------------------------------
Comment (by wdj):
Testing now, but some comments:
(1) I don't understand the line 1166 (inversion_list = []). Am I missing
something?
(2) In the examples, there is only one:-) What do you think of
the following idea: In the examples, compare your graph with
what you get using show BipartiteGraph, as below? Note the difference
in the orientation of the graph. (I prefer the orientation in the
bipartite graph plot personally.) Just food for thought. I'm attaching two
plots, one is your plot, re-oriented to match the graph plot, and the
other is the graph plot.
{{{
sage: p = Permutations(10).random_element(); p
[5, 10, 4, 8, 3, 1, 9, 6, 2, 7]
sage: E = [(i, 10+p(i)) for i in range(1,11)]
sage: G = BipartiteGraph(E); G.show()
sage: p.show()
sage: G = BipartiteGraph(E); G.show()
sage: p.show()
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12872#comment:4>
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.