如何允许Graphviz中的边重叠? 背景
我正在使用Graphviz创建组织结构图 问题 默认情况下,如何允许Graphviz中的边重叠? 背景,graphviz,dot,edges,orthogonal,Graphviz,Dot,Edges,Orthogonal,我正在使用Graphviz创建组织结构图 问题 默认情况下,dot创建以下图表: 所需的输出组合边,使其与弯头连接重叠: 源代码 以下源代码生成有问题的图表: digraph G { splines = ortho; concentrate = true; node [shape="box", style="rounded", penwidth = 2]; edge [color="#142b30", arrowhead="vee", penwidth = 2]; {
dot
创建以下图表:
所需的输出组合边,使其与弯头连接重叠:
源代码
以下源代码生成有问题的图表:
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";
}
问题:
如何在曼哈顿布局中创建正交的肘关节边
思想
我尝试了各种sametail
和tailport
组合,但都没有效果。只有通过插入不可见(“虚拟”)节点才能创建“肘关节”边
有关详细信息,请参阅类似问题的答案。与@marapet的答案类似,您可以从中获得灵感