Skip to content

Interchange Lane Reorder

Two lanes share one step while a third lane is declared between them. Auto-layout reorders the interleaving lane to an outer track so the two members become adjacent and infer a clean interchange, instead of abstaining (issue #779).

Mermaid source
examples/topologies/interchange_lane_reorder.mmd
%%metro title: Interchange lane reorder
%%metro style: dark
%%metro line: top | Top | #d62728
%%metro line: mid | Mid | #2db572
%%metro line: bot | Bot | #f5c542
graph LR
subgraph s [Parallel lanes]
top_in[ ]
mid_in[ ]
bot_in[ ]
hub[Shared step]
mid_step[Mid step]
top_out[ ]
mid_out[ ]
bot_out[ ]
top_in -->|top| hub
bot_in -->|bot| hub
mid_in -->|mid| mid_step
hub -->|top| top_out
hub -->|bot| bot_out
mid_step -->|mid| mid_out
end
CLI command
Terminal window
nf-metro render examples/topologies/interchange_lane_reorder.mmd -o interchange_lane_reorder.svg
Rendered map
Interchange lane reorder 1 Shared step Mid step Top Bot Mid created with nf-metro v1.1.0+dev