Skip to content

Section Trunk Short Output Branch

A section holding a long main chain plus a short branch to an off-track output file. The long chain rides the section trunk straight and the short output branch peels off it, rather than the short branch taking the trunk and forcing the main chain onto a diagonal that crosses it (issue #1487).

Mermaid source
examples/topologies/section_trunk_short_output_branch.mmd
%%metro title: Section trunk short output branch
%%metro style: nfcore
%%metro file: sink | OUTPUT
%%metro line: l1 | Line 1 | #e6007e
graph LR
subgraph src_sec [Source]
%%metro exit: right | l1
p1[P1]
p2[P2]
end
subgraph main_sec [Main]
%%metro entry: left | l1
%%metro exit: right | l1
s1[S1]
s2[S2]
s3[S3]
s4[S4]
s5[S5]
s1 -->|l1| sink
s2 -->|l1| s3
s3 -->|l1| s4
s3 -->|l1| s5
end
subgraph dst_sec [Sink]
%%metro entry: left | l1
t1[T1]
end
p1 -->|l1| s1
p2 -->|l1| s2
s4 -->|l1| t1
CLI command
Terminal window
nf-metro render examples/topologies/section_trunk_short_output_branch.mmd -o section_trunk_short_output_branch.svg
Rendered map
Section trunk short output branch 1 2 3 OUTPUT S2 P1 T1 S1 P2 S3 S4 S5 Line 1 created with nf-metro v2.0.0+dev