By default, the ortho rendering looks like :
digraph{
splines=ortho
a -> 1
a -> 2
a -> 3
}
[dot]
digraph{
splines=ortho
a → 1
a → 2
a → 3
}
[/dot]
I would like a straight vertical line from a, and then an horizontal line, and then three vertical lines going to 1,2,3
a
|
--------
| | |
1 2 3
I don’t see how I can tell dot to do this, so I added an invisible point p
digraph{
splines=ortho
p [label= "" width=0.01 height=0.01 shape=point fixedsize=true]
a -> p [arrowhead=none]
p -> 1
p -> 2
p -> 3
}
[dot]
digraph{
splines=ortho
p [label= “” width=0.01 height=0.01 shape=point fixedsize=true]
a → p [arrowhead=none]
p → 1
p → 2
p → 3
}
[/dot]
Which is almost perfect, but… if I add a fourth point :
digraph{
splines=ortho
p [label= "" width=0.01 height=0.01 shape=point fixedsize=true]
a -> p [arrowhead=none]
p -> 1
p -> 2
p -> 3
p -> 4
}
[dot]
digraph{
splines=ortho
p [label= “” width=0.01 height=0.01 shape=point fixedsize=true]
a → p [arrowhead=none]
p → 1
p → 2
p → 3
p → 4
}
[/dot]
Horror !
Even with two points I have strange behaviour, the edge don’t go to the center of the node :
digraph{
splines=ortho
p [label= "" width=0.01 height=0.01 shape=point fixedsize=true]
a -> p [arrowhead=none]
p -> 1
p -> 2
}
[dot]
digraph{
splines=ortho
p [label= “” width=0.01 height=0.01 shape=point fixedsize=true]
a → p [arrowhead=none]
p → 1
p → 2
}
[/dot]
I love Graphviz, please tell me it’s possible !