Tinydot

Tiny language alternative to DOT.

Installation

$ gem install tinydot

Graphviz is required to convert files written by tinydot into images.

Usage

$ tinydot convert sample.tinydot

tinydot command converts *.tinydot or *.tdot into *.dot and converts the converted files into graph images using Graphviz.

Examples

digraph "sample" do
  a >> b >> c
  a <=> d
  b <=> d
end

is equivalent to

digraph sample {
  a -> b;
  b -> c;
  a -> d [dir = both];
  b -> d [dir = both];
}

and converted into a following graph.

sample