Is it possible to draw ASCII diagram using Graphviz?
Something like that:
digraph { this -> is this -> a a -> test }
Gives undesired result.
Instead, I would like to get similar ASCII representation:
this / \ is a | test
How to draw ascii diagrams from dot-files format?
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
Here is equivalent commands for linux:
First install cpanminus
sudo apt install cpanminus
After you can install GraphEasy
sudo cpanm Graph::Easy
Here is a sample usage
cat input.dot | graph-easy --from=dot --as_ascii
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With