Nested Subgraphs

A subgraph nested inside another (two levels), with edges entering the inner containers.

nested-subgraphs.mmd
graph TD
  subgraph Cloud
    subgraph us-east [US East Region]
      A[Web Server] --> B[App Server]
    end
    subgraph us-west [US West Region]
      C[Web Server] --> D[App Server]
    end
  end
  E[Load Balancer] --> A
  E --> C
Output
Flowchart, Zombie Mermaid Cloud US East Region US West Region Web Server App Server Load Balancer Web Server App Server

More Flowchart examples