Graphviz的组合边

9
我正在寻找一种使用Graphviz实现以下效果的方法:
          --- node B 
          |
node A ---
          |
          --- node C

另一个例子(在底部):http://machining.grundfos.de/media/60727/grundfos_pumpenhandbuch.pdf#23

graphviz有没有实现这个功能的方法?

到目前为止,我只得到了正交边缘:

digraph G {
 graph [rankdir=LR,splines=ortho,concentrate=true];
 node [shape=box,];
 edge [dir=none];

 a -> b;
 a -> c;
}
1个回答

15

你必须引入中间节点(最终隐藏节点)作为分割点。例如:

digraph G {
 graph [rankdir=LR,splines=ortho,concentrate=true];
 node [shape=box,];
 edge [dir=none];
 i [shape=point];
 a -> i -> b;
 a -> i -> c;
}

产生收益。 enter image description here

3
你可以在i的选项中添加width=0: i [shape=point, width=0]; - wombalton

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接