How can I permit overlapping edges in Graphviz?
背景
我正在使用Graphviz创建组织结构图。
问题
默认情况下,
所需的输出结合了边缘,使其与肘部连接重叠:
源代码
下面的源代码生成有问题的图:
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"; } |
问题
主意
我尝试了
只能通过插入不可见的("虚拟")节点来创建"肘关节"边缘。
有关详细信息,请参见类似问题的答案。