We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c0c8b commit 17f72faCopy full SHA for 17f72fa
src/sage/combinat/posets/posets.py
@@ -8961,8 +8961,9 @@ def __iter__(self):
8961
for dig in it:
8962
# We need to relabel the digraph since range(self._n) must be a linear
8963
# extension. Too bad we need to compute this again. TODO: Fix this.
8964
- label_dict = dict(zip(dig.topological_sort(), range(dig.order())))
8965
- yield FinitePoset(dig.relabel(label_dict, inplace=False))
+ label_dict = dict(zip(dig.topological_sort(), range(self._n)))
+ dig.relabel(label_dict, inplace=True)
8966
+ yield FinitePoset(dig)
8967
8968
def cardinality(self, from_iterator=False):
8969
r"""
0 commit comments