Skip to content

Rail Inter Section

Two `%%metro line_spread: rails` sections joined by an inter-section edge. The connector wraps cleanly from the upstream right exit port, down the right margin, across the inter-section gap, and down the left margin into the downstream left entry port - no dangling port stubs and no avoidable crossings between co-travelling lines.

Mermaid source
examples/topologies/rail_inter_section.mmd
%%metro title: Rail inter-section connector
%%metro style: dark
%%metro line_spread: rails
%%metro line: a | A | #2db572
%%metro line: b | B | #f4a300
graph LR
subgraph one [Section one]
s1[Start]
s2[Middle]
s1 -->|a,b| s2
end
subgraph two [Section two]
t1[Next]
t2[End]
t1 -->|a,b| t2
end
s2 -->|a,b| t1
CLI command
Terminal window
nf-metro render examples/topologies/rail_inter_section.mmd -o rail_inter_section.svg
Rendered map
Rail inter-section connector 1 2 Start Next Middle End A B created with nf-metro v1.1.0+dev