Graph Theory Explorer

BFS · DFS · MST · Shortest Path

How to use

  1. Add Node mode is on by default — click anywhere on the canvas below to place a node.
  2. Switch to Add Edge mode, then click two nodes in a row to connect them (you'll be asked for a weight).
  3. Pick an Algorithm and a Start node on the left, then press ▶ Play.
Click empty space to add a node

Explanation

Add a few nodes and edges, pick an algorithm, then press Play.
Waiting to start...

Frontier & State Inspection

Algorithm Ready
Open Set / Frontier:
(empty)
Closed Set / Settled:
(empty)
Node Status Values / Telemetry
Play or step through an algorithm to inspect live node and frontier states.