#15875: Add is_subposet
-------------------------------------+-------------------------------------
Reporter: csar | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.9
Component: combinatorics | Resolution:
Keywords: posets | Merged in:
Authors: Jori Mäntysalo | Reviewers: Travis Scrimshaw
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jmantysalo/is_subposet | 00daf69f415aa6f10410dc65841ebe48f592c88b
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jmantysalo):
Replying to [comment:32 ncohen]:
> I love this facade thing.
> {{{
> sage: 1 in Poset({1:[2]},facade=False)
> True
> sage: 1 in list(Poset({1:[2]},facade=False))
> False
> }}}
Uh... Should we open a ticket from this? I guess this it because
`__contains__()`. But I have no idea about how to correct it. Basically
this is because
{{{
P=Poset({1:[2]},facade=False)
1 in P, 1==P[0], 1==P[1]
}}}
--> `(True, False, False)`.
--
Ticket URL: <http://trac.sagemath.org/ticket/15875#comment:38>
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.