#8148: looking at the dual of a poset: IndexError
-----------------------------+----------------------------------------------
   Reporter:  jhpalmieri     |       Owner:  sage-combinat
       Type:  defect         |      Status:  new          
   Priority:  major          |   Milestone:  sage-4.3.2   
  Component:  combinatorics  |    Keywords:               
     Author:                 |    Upstream:  N/A          
   Reviewer:                 |      Merged:               
Work_issues:                 |  
-----------------------------+----------------------------------------------
 In Sage 4.3.2.alpha0:
 {{{
 sage: Q = Poset({1: [], 3: [], 2: [1, 3]})
 sage: Q.show()  # works fine
 sage: Q.dual().show()
 ...
 IndexError: list index out of range
 }}}
 Note that the following works, and is what I'm using in my code right now:
 {{{
 sage: Poset(Q.hasse_diagram().reverse()).show()
 }}}
 Actually, though, this fails if Q is defined instead to be
 {{{
 sage: Q = Poset({1: [], 2: [1]})
 sage: Q.show()  # works fine, although the picture looks a little funny
 sage: Poset(Q.hasse_diagram().reverse()).show()
 ...
 RuntimeError: Error building image
 }}}

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