Skip to content

Orthogonal routing in clusters

Engine
dot
Command, both sides
dot -Kdot -Gsplines=ortho -Tsvg input.gv
Features
splines=orthoclusters
Result
identical on macOSidentical under portable math
Comparing…
C Graphviz 16.1.0 output, cyan plategraphviz-pure, native macOS build output, magenta plate

C onlyport onlyboth: in register

Input

clust4.gv
digraph G {
subgraph cluster_0 {
style=filled;
color=lightgrey;
node [style=filled,color=white];
a0 -> a1 -> a2 -> a3;
label = "process #1";
}
subgraph cluster_1 {
node [style=filled];
b0 -> b1 -> b2 -> b3;
label = "process #2";
color=blue
}
start -> a0;
start -> b0;
a1 -> b3;
b2 -> a3;
a3 -> a0;
a3 -> end;
b3 -> end;
start [shape=Mdiamond];
end [shape=Msquare];
}

Files

FileBytesSHA-256
input.gv401
c.svg C8,301925e2f1a0872e3717cf89a4b2fd54f933aa8a3fe86c86f5a5fa6b734d033e357
rust.svg Rust8,3122c7ebee57cce0e7e14c51dadf53e6cd8ea70d7cf6318d430475bd8f3087b751c

The two hashes differ even when the outputs are identical, because each file keeps its own generator comment. Made by scripts/site-samples.sh.