Skip to content

Record ports

Engine
dot
Command, both sides
dot -Kdot -Tsvg input.gv
Features
recordsports
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

structs.gv
digraph structs {
node [shape=record];
struct1 [shape=record,label="<f0> left|<f1> middle|<f2> right"];
struct2 [shape=record,label="<f0> one|<f1> two"];
struct3 [shape=record,label="hello\nworld |{ b |{c|<here> d|e}| f}| g | h"];
struct1:f1 -> struct2:f0;
struct1:f2 -> struct3:here;
}

Files

FileBytesSHA-256
input.gv307
c.svg C3,901fc74dead1e83e86e827e1ff03055cc43fdcc51048093d6d99dcbebe2d4cc47d1
rust.svg Rust3,9121a2b744ef4a7112a9cbeb1d31688899827efed5b5ce1349ebcad194465466482

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