关于点:如何在Graphviz中允许重叠的边?

How can I permit overlapping edges in Graphviz?

背景

我正在使用Graphviz创建组织结构图。

问题

默认情况下,dot创建下图:

Default

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
29
30
31
digraph G {
  splines = ortho;
  concentrate = true;

  node [shape="box", style="rounded", penwidth = 2];
  edge [color="#142b30", arrowhead="vee", penwidth = 2];

  {
    rank = same
   "1";
   "2";
   "3";
   "4";
  }

 "Main Node" ->"1";
 "Main Node" ->"2";
 "Main Node" ->"3";
 "Main Node" ->"4";

  {
    rank = same
   "5";
   "6";
   "7";
  }

 "1" ->"5";
 "1" ->"6";
 "1" ->"7";
}

问题

dot如何在曼哈顿布局中创建正交的肘关节边缘?

主意

我尝试了sametailtailport的各种组合,但无济于事。


只能通过插入不可见的("虚拟")节点来创建"肘关节"边缘。

有关详细信息,请参见类似问题的答案。