Visual demonstration of Dijkstra's algorithm