0

I can control ordering of other nodes using ordering="in", but root nodes have no incoming edges to define the order by that way.

Eg:

digraph {
  A -> B
  C -> D
  D -> X
  B -> X
  X [ordering="in"]
}

It generates this: actual output but I want this: desired output

user1318499
  • 1,327
  • 11
  • 33

1 Answers1

2

This question may be duplicated with the question here. The following approach using additional invisible edges works perfectly for this graph:

digraph {
  A -> B
  A -> D[style=invis];
  C -> B[style=invis];
  C -> D
  D -> X
  B -> X
  X [ordering="in"]
}

enter image description here

Jason Pan
  • 702
  • 7
  • 21