Ask a question to get started
Enter to send•Shift+Enter new line
Draw the given state graph into a PNG file.
Requires graphviz and pygraphviz to be installed.
graphviz
pygraphviz
draw( self, graph: Graph, output_path: str | None = None ) -> bytes | None
graph
Graph
The graph to draw
output_path
str | None
None
The path to save the PNG. If None, PNG bytes are returned.