Skip to content

Fold Left Exit Right Entry

A folded TB section's LEFT exit runs straight west into a relocated section's RIGHT entry. Regression fixture: the two joined sections share a bbox bottom so the straight run clears both edges by the same distance.

Mermaid source
examples/topologies/fold_left_exit_right_entry.mmd
%%metro title: Fold Left Exit Right Entry
%%metro style: dark
%%metro line: a | Line A | #2db572
%%metro line: b | Line B | #e6550d
%%metro line: c | Line C | #756bb1
%%metro fold_threshold: 4
graph LR
subgraph inputs [Inputs]
A_IN[ ]
a1([A Step 1])
a2([A Step 2])
a3([A Step 3])
B_IN[ ]
C_IN[ ]
A_IN -->|a| a1
a1 -->|a| a2
a2 -->|a| a3
end
subgraph middle [Middle]
split([Split])
prepare([Prepare])
pred_x([Predict X])
pred_y([Predict Y])
pred_z([Predict Z])
merge([Merge])
split -->|a,b,c| prepare
prepare -->|a,b,c| pred_x
prepare -->|a,b,c| pred_y
prepare -->|a,b,c| pred_z
pred_x -->|a,b,c| merge
pred_y -->|a,b,c| merge
pred_z -->|a,b,c| merge
end
subgraph report [Report]
summarize([Summarize])
tsv_pad[ ]
format([Format])
TSV_OUT[ ]
HTML_OUT[ ]
summarize -->|a,b,c| tsv_pad
summarize -->|a,b,c| format
tsv_pad -->|a,b,c| TSV_OUT
format -->|a,b,c| HTML_OUT
end
a3 -->|a| split
B_IN -->|b| split
C_IN -->|c| split
merge -->|a,b,c| summarize
CLI command
Terminal window
nf-metro render examples/topologies/fold_left_exit_right_entry.mmd -o fold_left_exit_right_entry.svg
Rendered map
Fold Left Exit Right Entry 1 2 3 Split Summarize A Step 1 Prepare Format A Step 2 Predict X PredictY Predict Z A Step 3 Merge Line A Line B Line C created with nf-metro v1.1.0+dev