You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using mermaid to render a network documentation. I have to create a diagram showing network infrastructure by floor and wouldlike to use subgraphs stacked on top of each other, but the elk algorythm only stacks them in a spiral.
How can i influence the placement of subgraphs?
Thsi is the Result that I got and I will post the code below:
flowchart BT
subgraph KG
direction LR
Server0
Switch3
end
subgraph EG
direction TB
Switch2
PC4
PC5
PC6
end
subgraph OG1
direction TB
Switch5
PC10
PC11
PC12
end
subgraph OG2
direction TB
Switch4
PC7
PC8
PC9
end
subgraph OG3
direction TB
Switch1
PC1
PC2
PC3
PC13
end
Switch3 --- Server0
Switch2 ---- Switch3
Switch2 ---- Switch3
Switch2 ---- Switch3
Switch2 ---- Switch3
Switch2 --- PC4
Switch2 --- PC5
Switch2 --- PC6
Switch2 ---- Switch5
Switch2 ---- Switch5
Switch5 --- PC10
Switch5 --- PC11
Switch5 --- PC12
Switch5 ---- Switch4
Switch4 --- PC7
Switch4 --- PC8
Switch4 --- PC9
Switch4 ---- Switch1
Switch1 --- PC1
Switch1 --- PC2
Switch1 --- PC3
Switch1 --- PC13
Switch1 ---- Switch2
KG --- EG --- OG1 --- OG2 --- OG3
This is my code:
flowchart BT
subgraph KG
direction LR
Server0
Switch3
end
subgraph EG
direction TB
Switch2
PC4
PC5
PC6
end
subgraph OG1
direction TB
Switch5
PC10
PC11
PC12
end
subgraph OG2
direction TB
Switch4
PC7
PC8
PC9
end
subgraph OG3
direction TB
Switch1
PC1
PC2
PC3
PC13
end
Switch3 --- Server0
Switch2 ---- Switch3
Switch2 ---- Switch3
Switch2 ---- Switch3
Switch2 ---- Switch3
Switch2 --- PC4
Switch2 --- PC5
Switch2 --- PC6
Switch2 ---- Switch5
Switch2 ---- Switch5
Switch5 --- PC10
Switch5 --- PC11
Switch5 --- PC12
Switch5 ---- Switch4
Switch4 --- PC7
Switch4 --- PC8
Switch4 --- PC9
Switch4 ---- Switch1
Switch1 --- PC1
Switch1 --- PC2
Switch1 --- PC3
Switch1 --- PC13
Switch1 ---- Switch2
KG --- EG --- OG1 --- OG2 --- OG3
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using mermaid to render a network documentation. I have to create a diagram showing network infrastructure by floor and wouldlike to use subgraphs stacked on top of each other, but the elk algorythm only stacks them in a spiral.
How can i influence the placement of subgraphs?
Thsi is the Result that I got and I will post the code below:
This is my code:
Beta Was this translation helpful? Give feedback.
All reactions