Pathfinding Algorithms Visualizer
How to Use
- Click a node to set it as the source (amber highlight)
- Click another node to set it as the target (gold highlight)
- Click "BFS Path" to find the unweighted shortest path (fewest hops)
- Click "Dijkstra" to find the weighted shortest path (lowest total cost)
- Click "Reset" to clear and try a different pair
About
In unweighted graphs, the shortest path is the one with the fewest edges. But when edges have weights (like communication frequency), Dijkstra's algorithm finds the path with the lowest total cost — which may take more hops but follows stronger connections.