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)
评论列表
文章目录