QuantumGraph is a sequence of `QuantumGraphTaskNodes` objects.
Typically the order of the tasks in the list will be the same as the
order of tasks in a pipeline (obviously depends on the code which
constructs graph).
Parameters
----------
iterable : iterable of `QuantumGraphTaskNodes`, optional
Initial sequence of per-task nodes.
Definition at line 119 of file graph.py.
def lsst.pipe.base.graph.QuantumGraph.traverse |
( |
|
self | ) |
|
Return topologically ordered Quanta and their prerequisites.
This method iterates over all Quanta in topological order, enumerating
them during iteration. Returned `QuantumIterData` object contains
Quantum instance, its ``quantumId`` and ``quantumId`` of all its
prerequsites (Quanta that produce inputs for this Quantum):
- the ``quantumId`` values are generated by an iteration of a
QuantumGraph, and are not intrinsic to the QuantumGraph
- during iteration, each ID will appear in quantumId before it ever
appears in prerequisites.
Yields
------
quantumData : `QuantumIterData`
Definition at line 155 of file graph.py.