Let G be a set of subsets of a set with $n$ elements. Here a (stupid) example:
p=5
S = Subsets([1,..,p])
G=[t for t in S if sum(t)==p]
display(S)
display(G)
My question is how do I obtain the set G as a poset in Sage?
1 | initial version |
Let G be a set of subsets of a set with $n$ elements. Here a (stupid) example:
p=5
S = Subsets([1,..,p])
G=[t for t in S if sum(t)==p]
display(S)
display(G)
My question is how do I obtain the set G as a poset in Sage?
Let G be a set of subsets of a set with $n$ elements. Here a (stupid) example:
p=5
S = Subsets([1,..,p])
G=[t for t in S if sum(t)==p]
display(S)
display(G)
My question is how do I obtain the set G as a poset in Sage?Sage?
Thanks for any help.