I am trying to construct the poset of set partitions of {1,2,...,n} ordered 
by refinement. I was working in SageCloud and followed the steps from here 
(just ctrl-F 'set partitions' and you'll find it):

http://doc.sagemath.org/html/en/reference/combinat/sage/combinat/posets/posets.html#sage.combinat.posets.posets.Poset

Here is what I entered into Sage:

> n=4
> elms = SetPartitions(n)
> def fcn(A, B):
>     if len(A) != len(B)+1:
>          return False
>     for a in A:
>          if not any(set(a).issubset(b) for b in B):
>             return False
>     return True
> P = Poset((elms,fcn),cover_relations=True)


which is mostly just copy-and-pasted from the website, but Sage gives me 
the error 
TypeError: _element_constructor_() got an unexpected keyword argument 
'cover_relations'

Any ideas would be much appreciated, and thanks in advance!
Sean

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to