- Difficulty level: easy
- Time need to lean: 10 minutes or less
- Key points:
- option
-d
output DAGs of workflow at different stages of execution %preview
magic can preview the generated DAGs in an animation format
- option
SoS allows the output of Direct Acyclic Graph in graphviz dot format of the execution of the workflow using option -d
. DAGs would be written to standard output if the option -d
is given without value, and to a file if a filename is given. Because of the dynamic nature of SoS, multiple DAGs will be written to the output.
Magic %preview
converts the .dot
file to a .gif
animation and display it in the notebook, which is a great way to show the relationship betwen steps of workflows, and the order at which the workflows are executed.
Let us create an example with some nodes, and execute the workflow with two targets B2.txt
and C2.txt
InĀ [1]: