考虑以下点代码:
digraph "f400aee5-0667-4256-b0b1-e9a6a4dfa0f4" {
graph [compound=true,
newrank=true,
ranksep=10,
ratio=0.5,
];
node [ shape=point ];
subgraph "rank-1" {
graph [rank=same];
subgraph "cluster_1" {
graph [label="some gaph label"];
"node1-1";
}
}
subgraph "rank-2" {
graph [rank=same];
"vm";
}
"vm" -> "node1-1";
"vm" -> "node2-1";
"vm" -> "node2-2";
}
命令的输出
$ cat ~/Desktop/dump1.dot | ./dot.exe -Tpng > ~/Desktop/dump1.png
是
群集的宽度非常大。 ranksep有意设置为10,以创建更多空间。但是,如何确保群集的宽度与其他节点之间的距离更大?