Answers for "python draw state diagrams"

0

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)
Posted by: Guest on April-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language