Searched refs:TopologicalSorter (Results 1 – 5 of 5) sorted by relevance
18 .. class:: TopologicalSorter(graph=None)35 to the graph using the :meth:`~TopologicalSorter.add` method.40 * Create an instance of the :class:`TopologicalSorter` with an optional43 * Call :meth:`~TopologicalSorter.prepare` on the graph.44 * While :meth:`~TopologicalSorter.is_active` is ``True``, iterate over45 the nodes returned by :meth:`~TopologicalSorter.get_ready` and46 process them. Call :meth:`~TopologicalSorter.done` on each node as it51 :meth:`TopologicalSorter.static_order` can be used directly:56 >>> ts = TopologicalSorter(graph)63 topological_sorter = TopologicalSorter()[all …]
18 ts = graphlib.TopologicalSorter(graph)21 ts = graphlib.TopologicalSorter(graph)31 ts = graphlib.TopologicalSorter()92 ts = graphlib.TopologicalSorter()100 ts = graphlib.TopologicalSorter({0: dependson})105 ts = graphlib.TopologicalSorter()111 ts2 = graphlib.TopologicalSorter({1: {2, 3, 4, 5}})132 ts = graphlib.TopologicalSorter()142 ts = graphlib.TopologicalSorter()148 ts = graphlib.TopologicalSorter()[all …]
39 class TopologicalSorter: class
36 Add :class:`functools.TopologicalSorter` to the :mod:`functools` module to
322 :class:`graphlib.TopologicalSorter` class to offer functionality to perform