Mermaid Subgraph Direction Test (Issue #4648)

This page demonstrates various subgraph direction scenarios for regression testing.

Sibling Subgraphs with Different Directions

flowchart TD

subgraph Group1
  direction TB
  A1 --> A2
  A2 --> A3
end

subgraph Group2
  direction LR
  B1 --> B2
  B2 --> B3
end

subgraph Group3
  direction LR
  C1 --> C2
  C2 --> C3
end

%% External connections between subgraphs
A3 --- B1
B3 --- C1
  

Nested Subgraph with External Connections

flowchart TD

subgraph Wrapper
  direction LR
  subgraph Inner
    D1 --> D2
    D2 --> D3
  end
end

%% External connection to nested subgraph
D3 --- E1