0

I'm using diagrams and trying to force a node to go on top of another:

with Diagram("My Diagram", show=False):
    A = ELB("A")
    B = EC2("B")
    C = RDS("C")

    A >> B
    A >> C

Which renders:

enter image description here

Is there a way to enforce node C going above node B?

Of course, in this simple example, simply changing the name/order of B and C could do the trick, but this doesn't work when the graph is more complex.

Joey Baruch
  • 4,180
  • 6
  • 34
  • 48
  • Since diagrams uses graphviz internally, maybe [this](https://stackoverflow.com/questions/5343899/how-to-force-node-position-x-and-y-in-graphviz) will help? Not sure how to apply that to diagrams. – Nick ODell Apr 22 '23 at 05:05

0 Answers0