```mermaid
  flowchart LR
    subgraph subgraph1
        direction TB
        top1[top] --> bottom1[bottom]
    end
    subgraph subgraph2
        direction TB
        top2[top] --> bottom2[bottom]
    end
    %% ^ 这两个子图完全相同,唯一区别在于指向它们的链接:
    %% 指向 subgraph1 的链接:会保留 subgraph1 的方向
    outside --> subgraph1
    %% subgraph2 内部的链接:
    %% subgraph2 继承顶层图(LR)的方向
    outside ---> top2
```