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)25 ts = graphlib.TopologicalSorter()86 ts = graphlib.TopologicalSorter()94 ts = graphlib.TopologicalSorter({0: dependson})99 ts = graphlib.TopologicalSorter()105 ts2 = graphlib.TopologicalSorter({1: {2, 3, 4, 5}})126 ts = graphlib.TopologicalSorter()136 ts = graphlib.TopologicalSorter()142 ts = graphlib.TopologicalSorter()[all …]
39 class TopologicalSorter: class
36 Add :class:`functools.TopologicalSorter` to the :mod:`functools` module to
318 :class:`graphlib.TopologicalSorter` class to offer functionality to perform