tags:

views:

51

answers:

1

Is it possible to draw ASCII diagram using Graphviz?

Something like that:

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

Gives following image:

diagram

But I would like to get ASCII representation:

   this
  /    \
is      a
        |
       test

Maybe you know other tools which understand dot-files format and can draw ascii diagrams?

A: 

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

spenthil