Hi!
I am helping a colleague rewrite his Maple code on certain posets to Sage.
One problem that came up is how to convert elements of the poset back
to the original elements:
sage: elms = [1,2,3,4,5,6,7]
sage: rels = [[1,2],[3,4],[4,5],[2,5]]
sage: P = Poset((elms, rels), cover_relations = True)
Hi Christian,
On Tue, Jun 08, 2010 at 03:57:57PM -0700, Christian Stump wrote:
> is it on purpose that the method LazyFamily does not check membership
> when calling __getitem__?
>
> sage: a = Family( range(10), lambda i:i+2)
> sage: a[4]
> 6
> sage: a[100]
> KeyError: 100
>
> sage: b =