문제

I'm looking for a way to achieve something like this in graphviz:

          --- node B 
          |
node A ---
          |
          --- node C

another example (at the bottom): http://machining.grundfos.de/media/60727/grundfos_pumpenhandbuch.pdf#23

Is there a way of doing that with graphviz?

so far I only got orthogonal edges:

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

 a -> b;
 a -> c;
}
도움이 되었습니까?

해결책

you must introduce intermediate (eventually hidden) nodes to act as split points. For instance:

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

yields

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top