Graphviz examples

Practical, ready-to-run Graphviz (DOT) examples — architecture diagrams, ERDs, flowcharts, decision trees, subgraphs and more. Click any example to open it in the interactive Graphviz playground, then edit the DOT source and see the diagram render instantly.

system design

system design graphviz example

A Graphviz example showing how to draw a system architecture diagram with digraph, node shapes (cylinder for databases, rarrow for a queue) and labelled edges.

Open in Graphviz playground

entity relationships

entity relationships graphviz example

A Graphviz example of an entity relationship diagram (ERD) built with shape=record nodes and taillabel/headlabel cardinality markers.

Open in Graphviz playground

workflow

workflow graphviz example

A Graphviz example of a workflow / flowchart using circle, doublecircle and diamond shapes for start, end and decision nodes.

Open in Graphviz playground

bpmn

bpmn graphviz example

A Graphviz example approximating a BPMN business process diagram with rounded, filled nodes, gateway diamonds and start/end event markers.

Open in Graphviz playground

service interaction

service interaction graphviz example

A Graphviz example of a microservices interaction diagram where edge color and label encode latency between services.

Open in Graphviz playground

database erd

database erd graphviz example

A Graphviz example of a database ERD drawn with HTML-like <table> labels and record PORTs so edges connect to specific columns.

Open in Graphviz playground

family tree

family tree graphviz example

A Graphviz example of a family tree using grouped edge targets (a -> { b c }) and per-node shape/color styling.

Open in Graphviz playground

subgraphs

subgraphs graphviz example

A Graphviz example of clustered subgraphs (subgraph cluster_0) that draw labelled boxes around related nodes.

Open in Graphviz playground

decision tree

decision tree graphviz example

A Graphviz example of a decision tree with Yes/No labelled branches and rank=same to align the leaf nodes.

Open in Graphviz playground