Graphviz and ascii output

后端 未结 5 1935
余生分开走
余生分开走 2021-01-30 12:50

Is it possible to draw ASCII diagram using Graphviz?

Something like that:

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

Giv

5条回答
  •  我在风中等你
    2021-01-30 13:02

    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/Graph-Easy/bin/graph-easy

    On Mac you can install this with Homebrew and cpan:

    brew install cpanminus
    cpan Graph::Easy
    

    It's easy to invoke after installation:

    cat dotfile.dot   | /opt/local/libexec/perl5.12/sitebin/graph-easy
    

提交回复
热议问题