dot

Generate dot sources.

See Visualize decay topologies for more info.

convert_to_dot(instance: object)str[source]

Convert a object to a DOT language str.

Only works for objects that can be represented as a graph, particularly a StateTransitionGraph or a list of StateTransitionGraph instances.

embed_dot(func: Callable[[Any], str]) → Callable[[Any], str][source]

Add a DOT head and tail to some DOT content.

write(instance: object, filename: str)None[source]