Skip to content

Commit 1e9209a

Browse files
committed
details
1 parent c66f999 commit 1e9209a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/combinat/posets/posets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8936,7 +8936,7 @@ def __iter__(self):
89368936
89378937
.. NOTE::
89388938
8939-
This uses the DiGraph iterator as a backend to construct
8939+
This uses an iterator from ``nauty`` as a backend to construct
89408940
transitively-reduced, acyclic digraphs.
89418941
89428942
EXAMPLES::
@@ -8945,8 +8945,8 @@ 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 as DG
8949-
for dig in DG().nauty_posetg(f"{self._n} o"):
8948+
from sage.graphs.digraph_generators import DiGraphGenerators
8949+
for dig in DiGraphGenerators().nauty_posetg(f"{self._n} o"):
89508950
# We need to relabel the digraph since range(self._n) must be a linear
89518951
# extension. Too bad we need to compute this again. TODO: Fix this.
89528952
label_dict = dict(zip(dig.topological_sort(), range(dig.order())))

0 commit comments

Comments
 (0)