#8148: looking at the dual of a poset: IndexError
------------------------------+---------------------------------------------
    Reporter:  jhpalmieri     |         Owner:  sage-combinat                 
        Type:  defect         |        Status:  closed                        
    Priority:  major          |     Milestone:  sage-duplicate/invalid/wontfix
   Component:  combinatorics  |    Resolution:  duplicate                     
    Keywords:                 |   Work_issues:                                
    Upstream:  N/A            |      Reviewer:  Lukáš Lánský                  
      Author:                 |        Merged:                                
Dependencies:                 |  
------------------------------+---------------------------------------------
Changes (by jdemeyer):

  * status:  positive_review => closed
  * reviewer:  => Lukáš Lánský
  * resolution:  => duplicate


Old description:

> 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
> }}}

New description:

 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
 }}}

 See #10998 instead.

--

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