Graphviz和ASCII输出 [英] Graphviz and ascii output
本文介绍了Graphviz和ASCII输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用Graphviz绘制ASCII图?
Is it possible to draw ASCII diagram using Graphviz?
类似的东西:
digraph
{
this -> is
this -> a
a -> test
}
给出不希望的结果.
相反,我想获得类似的ASCII表示形式:
Instead, I would like to get similar ASCII representation:
this
/ \
is a
|
test
如何从点文件格式绘制ASCII图?
How to draw ascii diagrams from dot-files format?
推荐答案
如果您不反对,Graph-easy(和相关的Graph::Easy
软件包)可以做到这一点:
If you are not perl averse, graph-easy (and the associated Graph::Easy
package) can do exactly that:
http://search.cpan.org/~tels/Graph-Easy/
http://search.cpan.org/~tels/易图/bin/图易
在Mac上,您可以使用Homebrew和cpan安装它:
On Mac you can install this with Homebrew and cpan:
brew install cpanminus
cpan Graph::Easy
安装后很容易调用:
cat dotfile.dot | /opt/local/libexec/perl5.12/sitebin/graph-easy
这篇关于Graphviz和ASCII输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文