0

Say I have four nodes a, b, c & d. And I have edges

a -> d  
b -> c  

Now if i generate graph, I get the vertices in the order a, d, b, c if I rank them same. But I want them in the order a, b, c, d. How should I set the rank ? Thanks in advance.

neel
  • 8,399
  • 7
  • 36
  • 50

1 Answers1

1

You could use invisible edges:

a -> b[style=invis];
b -> c;
c -> d[style=invis];
a -> d[constraint=false];
marapet
  • 54,856
  • 12
  • 170
  • 184