Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

rels must be a list of (hashable) relations. In your code frozenset({1,2,3}), frozenset({3,4,5}) represents a single relation, but you did not provide it as such. To fix the issue, you need to make a tuple composed of these two sets:

rels = [ ( frozenset({1,2,3}), frozenset({3,4,5}) ) ]

rels must be a list of (hashable) relations. In your code frozenset({1,2,3}), frozenset({3,4,5}) represents a single relation, but you did not provide it as such. To fix the issue, you need to make a tuple composed of these two sets:sets. Also, elts and rels should be provided to Poset() as a single tuple:

elts = [frozenset({1, 2, 3}), frozenset({3, 4, 5}), frozenset({1, 3, 4})]                                                                     
rels = [ ( frozenset({1,2,3}), frozenset({3,4,5}) ) ]
Poset( (elts, rels) )