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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.