Graphviz和ASCII输出
是否可以使用Graphviz绘制ASCII图?
类似的东西:
digraph { this -> is this -> a a -> test }
给出以下图像:
图表http://img15.imageshack.us/img15/6985/asciia.png
但我想获得ASCII表示法:
this / \ is a | test
也许你知道其他工具,了解点文件格式,并可以绘制ASCII图?
如果你不是perl厌恶的,graph-easy(和相关的Graph::Easy
软件包)可以做到:
http://search.cpan.org/~tels/Graph-Easy/
http://search.cpan.org/~tels/Graph-Easy/bin/graph-easy
在Mac上,你可以用Homebrew和cpan来安装:
brew install cpanminus cpan Graph::Easy
安装后很容易调用:
cat dotfile.dot | /opt/local/libexec/perl5.12/sitebin/graph-easy