0
我希望邊緣從一個子圖指向另一個子圖,而不是從一個節點指向子圖。點子圖邊緣的位置和方向
此外,我可以控制邊緣的長度嗎?
digraph G {
compound=true;
node[shape=box];
subgraph cluster0 {
color=blue;
label="Top";
a;
}
subgraph cluster1 {
color=magenta;
label="Middle";
b;
}
subgraph cluster2 {
color=green;
label="Bottom";
c;
}
a -> b[dir=back,ltail=cluster2,lhead=cluster1]
b -> c[dir=back,ltail=cluster1,lhead=cluster0]
}
'邊緣[minlen = 2];在第5行控制的長度邊緣。 – vaettchen