I have been trying to make a tree chart that has multiples sets of edges running between the nodes.
The goal is to look something like this:
I can eaisly make a chart with one set of edges like so:
However, I cannot get figure out how to add the second set of edges without the edges going all over the place.
When I try to do this, my output looks something like this:
I am not sure how to do this. My assumption is that graphviz is trying to avoid allowing edges to overlap.
My question is thus:
How can I make a display in graphviz that looks like the first of the three images, as opposed to the last of the three images.
The code I used to generate my graph is:
graph test_chart{
splines=ortho
rankdir=UD
ratio="fill"
graph[nodesep=1]
A[shape=box color=red, labe="A"group=1]
B[shape=box color=blue, label="B"]
C[shape=box color=blue, label="C" ]
D[shape=box color=blue label="D" ]
E[shape=box color=blue label="E"]
F[shape=box color=blue label="F"]
{p0, p1, p2, n0, n1, n2[shape=point label=""]}
p0[group=1]
edge[color="red"]
A-- p0
p1--B
p1--C
p2--D
p2--E
rank=same{p1--p0--p2}
{rank=same B--C--D--E[style=invis]}
edge[color=blue]
A-- n0
rank=same{n1--n0--n2}
n1--C
n1--D
n2--E
n2--F
}