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