#17138: LatticePoset: complements() is broken
---------------------------------+------------------------
       Reporter:  jmantysalo     |        Owner:
           Type:  defect         |       Status:  new
       Priority:  major          |    Milestone:  sage-6.4
      Component:  combinatorics  |   Resolution:
       Keywords:                 |    Merged in:
        Authors:                 |    Reviewers:
Report Upstream:  N/A            |  Work issues:
         Branch:                 |       Commit:
   Dependencies:                 |     Stopgaps:
---------------------------------+------------------------
Description changed by jmantysalo:

Old description:

> Complement of an element of lattice, if it exists, is not necessarily
> unique. Hence returning an array from `complements()` seems to be totally
> wrong. Right way is to return a dict of lists if called without arguments
> and a list if called with one element as argument.

New description:

 Complement of an element of lattice, if it exists, is not necessarily
 unique. Hence returning an array from `complements()` seems to be totally
 wrong. Right way is to return a dict of lists if called without arguments
 and a list if called with one element as argument.

 To clarify what is wrong in all possible meanings for a function called
 "complements":

 {{{
 sage: Posets.PentagonPoset().complements()
 [4, 3, 1, 1, 0]
 sage: LatticePoset({'a':'b'}).complements()
 [1, 0]
 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/17138#comment:1>
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to