to_graph

caqtus.shot_compilation.timed_instructions.to_graph(
instruction: TimedInstruction,
) Digraph

Convert a sequencer instruction to a graphiz graph for visualization.

This function requires Graphviz to be installed and available in the system path.

Parameters:

instruction – The instruction to convert to a graph.

Returns:

The graph representation of the instruction.