9
我有一個測試圖,我想調整,使其看起來更好。graphviz:小調整,使圖形看起來更好
這裏是graphviz的(點)源,test6.dot
:
digraph G {
ranksep=0.3; size="6.0,6.0";
node [fontsize=11];
subgraph clusterA {
X2 [shape=box];
node [style=filled];
1 -> 2 -> 3 -> X2 -> 5;
6;
7;
label = "A";
color=blue
}
X1 [shape=box];
subgraph clusterB {
node [style=filled];
8;
9;
10 -> 11 -> 12;
12 -> 9;
12 -> 8 -> 13;
13 -> 14;
label = "B";
color=blue
}
subgraph clusterC {
label = "C";
{
node [style="invis"];
gap;
}
node [shape=box];
edge [style="invis"];
X3 -> gap -> X4;
}
14 -> X4 -> 3;
6 -> X1 -> 10;
{ edge [dir="both"];
8 -> X3 -> 7;
}
9 -> X3
}
問題/變化我想提出:
- 我想節點
10 -> 11 -> 12 -> 8 -> 13 -> 14
到流處於垂直線(水平交換8和9)。我怎樣才能做到這一點? (同樣與1 -> 2 -> 3 -> X2 -> 5
;交換6和1) - 我想X1是在相同的垂直位置爲10,並且我怎樣才能做到這一點,相同的水平位置6.?
- 我希望8和X3和7處於同一垂直位置,也與14和X4和3.我該怎麼做?除了注意
8 -> 13 -> 14
有較大的差距 - 的
ranksep=0.3;
聲明的偉大工程,一樣X3 -> gap -> X4
。爲什麼它不服從ranksep = 0.3規則,我該如何解決這個問題?