![](https://csdnimg.cn/release/download_crawler_static/9219945/bg3.jpg)
A -> B[dir = both];
B -> C[dir = none];
C -> D[dir = back];
D -> A[dir = forward];
}
//点的 shape 除了 record 和 Mrecord 这两种之外,其他的形状都是多边形,而我们可以对多
边形进行一下属性上的设置,shape = polygon。Sides 用于设置它的边数,peripheries 用于设
置多边形的外框的层数,regular = true 可以让你的多边形是一个规则的多边形,orientation =
*,可以让你的多边形旋转一个角度,如 orientation = 15 就是转了 15 度。Skew 后面跟一个
(-1.0~1.0)的小数,能让你的图形斜切一个角度,distortion 是让你的图形产生透视效果。
1: digraph G {
2: a -> b -> c;
3: b -> d;
4: a [shape=polygon,sides=5,peripheries=3,color=lightblue,style=filled];
5: c [shape=polygon,sides=4,skew=.4,label="hello world"]
6: d [shape=invtriangle];
7: e [shape=polygon,sides=4,distortion=.7];
8: }