Quickstart

Five steps from zero to a real diagram. Edit any example to see it update live.

1

Two nodes, one edge

This is the smallest valid graph. Nodes are created automatically when referenced in an edge.

MeFridge
2

Shapes and labels

Add a shape after the colon — c circle, d diamond, r rect, p pill, o oval, h hexagon. Then a label.

Wake UpRaining?Grab UmbrellaHead Outyesno
3

Edge labels

Put a label after the edge to annotate it.

Tired?Make CoffeeGo for a RunStart the Dayyesno
4

Direction

Set the layout direction with >LR, >TB, >RL, or >BT. Default is top-to-bottom.

ShopChopCookEat
5

Groups

Wrap nodes in @name{...} to group them. Groups can have labels too.

MorningEveningGymBrunchMovieDinner