Graphviz and ascii output

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

    Using graph-easy via docker. You can install whalebrew and use it to run graph-easy without installing too much dependancies on your local machine other than whalebrew and docker.

    on MacOS with homebrew install docker

    $ brew install docker
    $ docker -v      # check if docker is running
    

    Install whalebrew - https://github.com/whalebrew/whalebrew (check installation alternatives)

    $ brew install whalebrew
    

    Install graph-easy via whalebrew

    $ whalebrew install tsub/graph-easy
    

    Now run it via

    $ echo '[a]->[b]' | graph-easy
    
    +---+     +---+
    | a | --> | b |
    +---+     +---+
    

提交回复
热议问题