Skip to content

Fold Split Targets

Two folded branches dropping into one section through a shared TOP entry, each line continuing to its own separate sink (a fan, not a merge). The distinct-line drops stay collapsed onto the column trunk, since they part to different stations rather than bundling along a shared run.

Mermaid source
examples/topologies/fold_split_targets.mmd
%%metro title: Fold Split Targets
%%metro style: dark
%%metro line: left_path | Left Path | #e63946
%%metro line: right_path | Right Path | #0570b0
%%metro fold_threshold: 4
graph LR
subgraph start [Start]
input[Input]
prep[Prepare]
input -->|left_path,right_path| prep
end
subgraph branch_left [Branch Left]
l1[Left Step 1]
l2[Left Step 2]
l3[Left Step 3]
l1 -->|left_path| l2
l2 -->|left_path| l3
end
subgraph branch_right [Branch Right]
r1[Right Step 1]
r2[Right Step 2]
r1 -->|right_path| r2
end
subgraph finish [Finish]
recv_l[Recv Left]
recv_r[Recv Right]
out[Output]
recv_l -->|left_path| out
recv_r -->|right_path| out
end
prep -->|left_path| l1
prep -->|right_path| r1
l3 -->|left_path| recv_l
r2 -->|right_path| recv_r
CLI command
Terminal window
nf-metro render examples/topologies/fold_split_targets.mmd -o fold_split_targets.svg
Rendered map
Fold Split Targets 1 2 3 4 Input Left Step 1 Recv Left Right Step 1 Recv Right Prepare Left Step 2 Output Right Step 2 Left Step 3 Left Path Right Path created with nf-metro v1.1.0+dev