摘要: 用法: python treeWriter.py #输出结果到tree.png或者 python treeWriter.py <output_file_name> 注意需要安装 graphviz 和 pygraphviz,安装方法见前一篇随笔。 当前的实现需要用户交互输入二叉树,默认输入-1作为子树空。 如对应上面的图,可输入 1 2 7 –1 –1 8 –1 –1 –1 3 4 1... 阅读全文
posted @ 2009-09-10 17:42 阁子 阅读(7855) 评论(0) 推荐(0) 编辑