File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 154
154
155
155
.. method :: static_order()
156
156
157
- Returns an iterable of nodes in a topological order. Using this method
158
- does not require to call :meth: `TopologicalSorter.prepare ` or
159
- :meth: `TopologicalSorter.done `. This method is equivalent to::
157
+ Returns an iterator object which will iterate over nodes in a topological
158
+ order. When using this method, :meth: `~TopologicalSorter.prepare ` and
159
+ :meth: `~TopologicalSorter.done ` should not be called. This method is
160
+ equivalent to::
160
161
161
162
def static_order(self):
162
163
self.prepare()
@@ -206,4 +207,4 @@ The :mod:`graphlib` module defines the following exception classes:
206
207
The detected cycle can be accessed via the second element in the :attr: `~CycleError.args `
207
208
attribute of the exception instance and consists in a list of nodes, such that each node is,
208
209
in the graph, an immediate predecessor of the next node in the list. In the reported list,
209
- the first and the last node will be the same, to make it clear that it is cyclic.
210
+ the first and the last node will be the same, to make it clear that it is cyclic.
You can’t perform that action at this time.
0 commit comments