Graph editor

Paste an edge list, adjacency lines or a grid maze and the graph draws itself. Drag and align nodes, annotate over the top with pen, arrows, highlighter, notes and an eraser, recolour anything, export SVG or PNG. Walk BFS, DFS, Dijkstra, Bellman-Ford and more one step at a time. Nothing is stored; the link carries the whole document.

Input
Walkthrough

Selection

Click a node, edge or annotation. Drag on empty canvas for a marquee; hold Shift to add to the selection.

Weights are written on plain "u v w" lines; this edge came from an adjacency list.

Colour
Stroke
Arrange
Canvas
Keyboard
V
Select
P
Pen
L
Straight line
A
Arrow
T
Text note
H
Highlighter
E
Eraser (drag over ink to rub it out)
N
Pan (or hold space, or middle-drag)
G
Grid and snap
CtrlA
Select all
CtrlD
Duplicate annotations
CtrlZ
Undo
CtrlShiftZ
Redo
Del
Delete selection
Esc
Deselect, then back to select
+-0
Zoom in, out, reset
Shift
Add to selection while clicking
←→
Step the walkthrough back and forward
Space
Play or pause the walkthrough

Shortcuts stay quiet while you are typing in a field. Double-click a node to rename it, or a note to edit it.