graph2dot

lsst.ctrl.mpexec.graph2dot(qgraph, file)

Convert QuantumGraph into GraphViz digraph.

This method is mostly for documentation/presentation purposes.

Parameters
qgraph: `pipe.base.QuantumGraph`

QuantumGraph instance.

filestr or file object

File where GraphViz graph (DOT language) is written, can be a file name or file object.

Raises
OSError is raised when output file cannot be open.
ImportError is raised when task class cannot be imported.