Record and struct (GraphViz)

Record and struct (GraphViz)

Record shapes give a node internal structure, and edges can point at an individual field. That is what makes Graphviz workable for data structure diagrams.


What this example shows

  • shape=record with pipe-separated fields.

  • Named ports, addressed as node:port in an edge.

  • A linked list, drawn without any manual positioning.


A worked example

Open it, edit it, or copy the source below.

Record and struct (GraphViz)

The source, which you can paste into a new diagram and edit:

extension

Making it your own

  • Angle brackets define a port name; a colon in an edge addresses it.

  • Braces flip the field direction, which is how you get a vertical record.

  • Escape any literal pipe, brace or angle bracket inside a label.


Related

extension

Give it the edges. It does the rest.

extension
extension