Graph Editor
Graph Editor • Nodes & Edges Workspace

Graph Editor — Interactive Node & Edge Graph Maker Online

Build, inspect, and animate any node and edge graph directly in your browser. Whether you search for a fast Graph Editor, an offline-capable GraphEditor for contests, or a clean nodes & edges visualizer for computer science coursework, every vertex, arrow, weight badge, and canvas note stays sharp without manual formatting.

Create Any Node & Edge Graph in Seconds

Visual Canvas + Instant Edge-List Sync

Type vertex pairs in the left editor or drag nodes interactively on the canvas. Both views stay synchronized in real time — ideal for debugging algorithmic inputs.

Directed, Undirected & Mixed Weights

Toggle arrows and numeric/string edge weights anytime. Attach node values (like DP states, capacities, or labels) in brackets 1 [10] or key syntax SRC: 0.

Lasso Selection & Clean Export

Select subgraphs with freehand Lasso or Ctrl-click to color vertices, bulk-edit weights, or export 2x PNG/SVG diagrams and C++/Python adjacency templates.

Whiteboard Pen, Laser & Floating Text

Annotate explanations directly on the graph using the Pen (P), Highlighter, Eraser (X), fading Laser Pointer (K), and borderless Text (T) tools beside Lasso.

Graph Types Supported Out of the Box

Graph Structure How to Build It Live Demo
Weighted Directed Network Paste u v w triples with Directed & Weighted active Dijkstra Shortest Path →
Undirected Traversal Graph Paste edge pairs with 1-based or 0-based vertex IDs BFS & DFS Graph →
Rooted Tree & Hierarchy Switch layout to Tree or import parent arrays Tree & LCA Visualizer →
DAG & Cyclic Components Run Kahn's Topological Sort or Tarjan SCC highlight DAG & Tarjan SCC →
0-Indexed LeetCode Graph Paste 2D arrays [[0,1,10],...] or string weights 0-Indexed Graph →

Example: Drawing a Node & Edge Graph with Text

# Directed node & edge graph with numeric and string weights
SRC 1 4
SRC 2 2
2 1 1
1 3' "flow"
2 3' 8
3' DEST 3
SRC [100]
DEST [0]

Frequently Asked Questions

How do I draw a node and edge graph online?

Type edges like 1 2 or A B 5 into the left input box or use canvas tools to place nodes and connect directed or undirected edges visually.

Does GraphEditor work offline without an account?

Yes. There is zero sign-up, your graphs auto-save locally in your browser, and bundled JetBrains Mono typography works offline via PWA or native desktop installers.

Can I customize colors, node labels, and edge curvature?

Yes. Click or Lasso-select any nodes or edges to open the Inspector and change fills, dashed/solid strokes, weights, or re-index between 0-based and 1-based.

Which algorithms can run on my nodes & edges?

Run 17+ interactive tracers including Dijkstra & Bellman-Ford, BFS & DFS, Tree DP & LCA, and Topological Sort & Tarjan SCC.