Skip to content

Convergence Fold Diamond

Two distinct lines converging into a sink folded below its branches: a `fold_threshold` stacks both branches in one column and drops the shared sink onto a lower row, fed through a TOP entry. The two feeders, and the run through the merge, ride parallel approach channels rather than collapsing onto one vertical channel.

Mermaid source
examples/topologies/convergence_fold_diamond.mmd
%%metro title: Convergence Fold Diamond
%%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]
merge[Merge]
report[Report]
merge -->|left_path,right_path| report
end
prep -->|left_path| l1
prep -->|right_path| r1
l3 -->|left_path| merge
r2 -->|right_path| merge
CLI command
Terminal window
nf-metro render examples/topologies/convergence_fold_diamond.mmd -o convergence_fold_diamond.svg
Rendered map
Convergence Fold Diamond 1 2 3 4 Input Left Step 1 Merge Right Step 1 Prepare Left Step 2 Report Right Step 2 Left Step 3 Left Path Right Path created with nf-metro v1.1.0+dev