5. **Repeat:** Repeat steps 2-4 until all nodes have been v…
5. **Repeat:** Repeat steps 2-4 until all nodes have been visited. The algorithm ends when the shortest paths to all nodes have been determined.
5. **Repeat:** Repeat steps 2-4 until all nodes have been visited. The algorithm ends when the shortest paths to all nodes have been determined.