draw.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:pyt 作者: SW10IoT 项目源码 文件源码
def draw_lattice_from_labels(labels, output_filename):
    graph = Digraph(format='pdf')

    root = make_lattice(labels, len(labels)-1)
    l = list()
    draw_node(l, graph, root)

    graph = apply_styles(graph, lattice_styles)
    graph.render(filename = output_filename+'.dot')

    add_anchor(output_filename)
    run_dot(output_filename)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号