Interactive Network Packet Routing Simulator
Experience graph-traversal theory in a live, tactile environment. See exactly how different algorithms make pathfinding decisions.
BFS explores the graph level by level, radiating outward from the source. It guarantees the path with the fewest hops, treating all edges as having equal weight.
DFS dives deep into a single path until it hits a dead end, then backtracks. It is rarely optimal for routing, but perfectly demonstrates the dangers of unguided exploration.
Calculates the absolute shortest path factoring in edge weights. The gold standard for positive-weight networks.
Iteratively relaxes all edges. Slower, but can handle negative weights and detect negative cycles.
Ready to see these algorithms in action on a live network graph?