In Dijkstra's algorithm what should I do if there are two or more nodes with minimal weights at a point in the algorithm?
In wikipedia: http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm at step no. 6, it says
"Set the unvisited node marked with the smallest tentative distance as the next 'current node' and go back to step 3."
What if there are two or more nodes with "smallest tentative distance".
Can anyone help me with the algorithm?