Skip to content

Commit

Permalink
move import
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Oct 10, 2024
1 parent 1e9209a commit 8b55fc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sage/combinat/posets/posets.py
Original file line number Diff line number Diff line change
Expand Up @@ -8945,8 +8945,7 @@ def __iter__(self):
sage: list(P)
[Finite poset containing 2 elements, Finite poset containing 2 elements]
"""
from sage.graphs.digraph_generators import DiGraphGenerators
for dig in DiGraphGenerators().nauty_posetg(f"{self._n} o"):
for dig in digraphs.nauty_posetg(f"{self._n} o"):
# We need to relabel the digraph since range(self._n) must be a linear
# extension. Too bad we need to compute this again. TODO: Fix this.
label_dict = dict(zip(dig.topological_sort(), range(dig.order())))
Expand Down

0 comments on commit 8b55fc3

Please sign in to comment.