nocad.io.to_dot#

nocad.io.to_dot(adj, labels=None, *, include_io=True, rank='control', annotate_kwargs=None, **kw)[source]#

Graphviz DOT source of an annotated network.

Nodes are colored by role (driver blue, sensor vermilion, both purple), matched edges are green, inputs and outputs are boxes, and with rank="control" (or "observation") the components of one level of the hierarchy share a rank, so that dot -Tpdf draws the SCC hierarchy.