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 1e9209a commit 8b55fc3Copy full SHA for 8b55fc3
src/sage/combinat/posets/posets.py
@@ -8945,8 +8945,7 @@ def __iter__(self):
8945
sage: list(P)
8946
[Finite poset containing 2 elements, Finite poset containing 2 elements]
8947
"""
8948
- from sage.graphs.digraph_generators import DiGraphGenerators
8949
- for dig in DiGraphGenerators().nauty_posetg(f"{self._n} o"):
+ for dig in digraphs.nauty_posetg(f"{self._n} o"):
8950
# We need to relabel the digraph since range(self._n) must be a linear
8951
# extension. Too bad we need to compute this again. TODO: Fix this.
8952
label_dict = dict(zip(dig.topological_sort(), range(dig.order())))
0 commit comments