Skip to content

Clusters

Engine
dot
Command, both sides
dot -Kdot -Tsvg input.gv
Features
clustersfilled styles
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,231f8b33359aff39f67f4dfd45927c4853eecd4d57bff64e56bb0ab742cdfd12ec4
rust.svg Rust8,2423f59e604bab517812b2444e4304cc5777e9a5c1c4bb8e18bbe764dc79a7be365

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