采取以下有向图:
digraph "all"{
subgraph "cluster cluster 1" {
node [label="1"] "1"
node [label="2"] "2"
}
subgraph "cluster cluster 2" {
node [label="3"] "3"
node [label="4"] "4"
}
1 -> 2
2 -> 1
3 -> 4
4 -> 3
}
为了将双向连接变成一个箭头,
我必须使用concentrate=true;
.
digraph "all"{
subgraph "cluster cluster 1" {
node [label="1"] "1"
node [label="2"] "2"
}
subgraph "cluster cluster 2" {
node [label="3"] "3"
node [label="4"] "4"
}
1 -> 2
2 -> 1
3 -> 4
4 -> 3
concentrate=true;
}
这适用于单个集群,但不适用于跨集群。
我也试过concentrate=true
在其他地方喷洒,但没有奏效。
digraph "all"{
subgraph "cluster cluster 1" {
node [label="1"] "1"
node [label="2"] "2"
concentrate=true;
}
subgraph "cluster cluster 2" {
node [label="3"] "3"
node [label="4"] "4"
concentrate=true;
}
1 -> 2
2 -> 1
3 -> 4
4 -> 3
2 -> 3
3 -> 2
concentrate=true;
}