Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python draw state diagrams

import pygraphviz as pgv
from IPython.display import Image

def draw(dot):
    return Image(pgv.AGraph(dot).draw(format='png', prog='dot'))

g1 = """digraph top {
   a -> b -> c;
}"""
draw(g1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #draw #state #diagrams
ADD COMMENT
Topic
Name
8+2 =