Ok, the way you escape Pandemonium is that you help it by explicitly distancing nodes from each other using intermediate Junction nodes.

You only ever connect at most one node to one outgoing direction of another node, you assume they're on a grid where one node is one unit from its neighbor, and you avoid overlapping nodes.

Don't give the layout engine anything to work out for you, and it won't go haywire.

#mermaid
#ArchitectureDiagram #ArchitectureGraph
#MermaidArchitectureDiagram #MermaidArchitectureGraph