0
我想要绘制在GraphViz的有限状态转换器。我已经定义了自循环,但是当我绘制它们时,我无法在主节点周围获得很好的“花”状循环分布。“花”样图中的GraphViz
digraph G {
size="8,5"
splines=true;
nodesep=1.0;
node [shape=ellipse,width=1,height=1];
0 [peripheries=2];
0:n -> 0:n [label=" A:A" minlen=5.0 rotate=45]
0:ne -> 0:ne [headlabel=" A:B" minlen=5.0];
0:e -> 0:e [label=" B:A" minlen=5.0];
0:se -> 0:se [label=" B:A" labeldistance=-8 minlen=5.0];
0:s -> 0:s [label=" *e*:A" minlen=5.0];
0:sw -> 0:sw [label=" *e*:B" minlen=5.0];
0:w -> 0:w [label=" B:*e*" minlen=5.0];
0:nw -> 0:nw [label=" A:*e*" minlen=5.0];
overlap=false
}
我的情节看起来像下面
有没有一种方法,我可以旋转始发,并在西北,东南,西南,东北终止自成回路的边缘方向是什么?我曾尝试orientation
和rotate
命令,但我不能让他们在dot
和neato
工作。
[定位](HTTP://www.graphviz .org/doc/info/attrs.html#a:orientation)仅适用于节点。 [旋转](http://www.graphviz.org/doc/info/attrs.html#d:rotate)仅适用于整个图表。 – magjac