GRAPH EDITOR
Click empty space to drop routers, double-click one to draw a weighted link, drag to rearrange. Marquee-select or Ctrl/⌘-click for multi-select, then move whole clusters together.
An interactive teaching simulator for graph algorithms. Place routers, connect them with weighted links, then run Dijkstra, BFS, DFS, or Bellman-Ford and see the priority queue, visited set, and packet come alive.
Every feature maps to a concrete DSA concept — the simulator is the lab, the graph is the whiteboard.
Click empty space to drop routers, double-click one to draw a weighted link, drag to rearrange. Marquee-select or Ctrl/⌘-click for multi-select, then move whole clusters together.
Run Dijkstra, BFS, DFS, or Bellman-Ford on the same graph. Each step yields a typed event — enqueue, visit, relax, settle — so you literally see the priority queue and visited set evolve.
Nodes glow through idle → frontier → visiting → settled as the algorithm progresses. A packet animates along the final shortest path with speed you can dial 0.25× to 4× mid-run.
The Inspector auto-generates a next-hop table from the source: destination, next hop, total cost, hop count. Exactly what a real router computes after running SPF.
Right-click any link to toggle failure. The failed edge dashes red; re-run the algorithm and watch the packet take a different route — the same reactive behaviour OSPF or IS-IS exhibits after a link event.
Save any topology as JSON, reload it later, or share a demo. Flip the unweighted switch to treat every edge as cost 1 — the natural setting to compare BFS against Dijkstra.