Online Graph Editor

Online Graph Editor is a browser-based tool for drawing directed or undirected graphs and finite automaton diagrams entirely with the mouse. The stage widget above lets you place vertices, connect and curve edges, and label everything with LaTeX.

How it works

Everything happens with the mouse and a handful of keys, no separate edit mode to switch in and out of:

Exporting

"Get TikZ code" opens the generated snippet in a dialog you can copy from directly; drop it into a document with \usepackage{tikz} and it reproduces the vertices, curves, self-loops and arrowheads as filled triangles at the correct angle. "Export SVG" downloads the current drawing as a self-contained .svg file, cropped to the graph, with labels drawn as plain SVG text so it renders correctly outside this page as well.

All the vector and hit-testing math behind dragging, curving and self-loops is done with Vector2.js, Pathomorph.js.