关于重叠:如何防止在圆环布局的graphviz中进行边缘重叠

How to prevent edge lapping in graphviz with circo layout

我试图使用GraphViz绘制圆形图,并决定使用circo对此图最好。

在7年前的一篇文章中已获得建议,即如何防止graphviz中的边彼此重叠,并使用全局overlap=falsesplines=true,这些边仍然彼此重叠。

整个图可以在这里看到,并定义为:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
digraph question6 {

 layout="circo"
 overlap=false
 splines=true
 node [shape="circle"]

 G1 [label="1, G"]
 G2 [label="2, G"]
 D11 [label="1, D1"]
 D12 [label="2, D1"]
 D21 [label="1, D2"]
 D22 [label="2, D2"]

 G1 -> D12 [label="c"]
 G1 -> G2 [label="a"]
 G2 -> D12 [label="a"]
 D11 -> G1 [label="d"]
 D11 -> D21 [label="e"]
 D11 -> D12  [label="c"]
 D12 -> G2 [label="d"]
 D12 -> D22 [label="c"]
 D21 -> G1 [label="d"]
 D21 -> D22 [label="c"]

 D22 -> D21 [label="b"]
 D22 -> G2 [label="d"]
}


到目前为止,还没有可行的方法。

One of the very difficult things that GraphViz is not yet able to
resolve is to determine if the graph is planar.