### 初识

#### 初次见面

graphviz是一个非常棒的画图工具集，由AT&T实验室出品，码农装逼一大利器。

#### 小试牛刀

dot -Tpdf *.dot > *.pdf


### 剖析

#### graph

• label=”My Graph”; Label a graph itself

• rankdir=LR; Lay the graph out from Left to Right, instead of Top to Bottom

• {rank=same; a, b, c} Group nodes together at the same level of a graph

• splines=”line”; Force edges to be straight, no curves or angles

• K=0.6; Used to influence the ‘spring’ used in the layout, Can be used to push nodes further apart, which is especially useful for twopi and sfdp layouts

#### 子图

graphviz另外还支持子图的绘制。比如：