| 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}) ) ]
| 2 | No.2 Revision |
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) )
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.