Graphviz and ascii output

后端 未结 5 1972
余生分开走
余生分开走 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:07

    By now, in ubuntu, you can install and use graph-easy directly:

    > sudo apt install libgraph-easy-perl
    [...]
    
    > graph-easy dotfile.dot 
    +----+     +------+
    | is | <-- | this |
    +----+     +------+
                 |
                 |
                 v
               +------+
               |  a   |
               +------+
                 |
                 |
                 v
               +------+
               | test |
               +------+
    

提交回复
热议问题