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 120 of file graph.py.
def lsst.pipe.base.graph.QuantumGraph.traverse |
( |
|
self | ) |
|
Return topologically ordered Quanta and their dependencies.
This method iterates over all Quanta in topological order, enumerating
them during iteration. Returned `QuantumIterData` object contains
Quantum instance, its ``index`` and the ``index`` of all its
prerequsites (Quanta that produce inputs for this Quantum):
- the ``index`` values are generated by an iteration of a
QuantumGraph, and are not intrinsic to the QuantumGraph
- during iteration, each ID will appear in index before it ever
appears in dependencies.
Yields
------
quantumData : `QuantumIterData`
Definition at line 201 of file graph.py.