File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ())))
You can’t perform that action at this time.
0 commit comments