Skip to content

Commit 8b55fc3

Browse files
committed
move import
1 parent 1e9209a commit 8b55fc3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sage/combinat/posets/posets.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8945,8 +8945,7 @@ def __iter__(self):
89458945
sage: list(P)
89468946
[Finite poset containing 2 elements, Finite poset containing 2 elements]
89478947
"""
8948-
from sage.graphs.digraph_generators import DiGraphGenerators
8949-
for dig in DiGraphGenerators().nauty_posetg(f"{self._n} o"):
8948+
for dig in digraphs.nauty_posetg(f"{self._n} o"):
89508949
# We need to relabel the digraph since range(self._n) must be a linear
89518950
# extension. Too bad we need to compute this again. TODO: Fix this.
89528951
label_dict = dict(zip(dig.topological_sort(), range(dig.order())))

0 commit comments

Comments
 (0)