gpt4 book ai didi

ascii - Graphviz 和 ascii 输出

转载 作者:行者123 更新时间:2023-12-03 06:11:00 26 4
gpt4 key购买 nike

是否可以使用 Graphviz 绘制 ASCII 图表?

类似的事情:

digraph
{
this -> is
this -> a
a -> test
}

给出了不想要的结果。

相反,我想获得类似的 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

关于ascii - Graphviz 和 ascii 输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3211801/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com