像写代码一样画图。

graphviz是一个从dot语言生成图片的工具,下面是一个dot示例和它对应的图片:

digraph G {
    a -> b;
    a -> c;
    a -> d;
}
digraph G { a -> b;
a -> c;
a -> d; }