📜  python 绘制状态图 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:10.296000             🧑  作者: Mango

代码示例1
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)