5. **Repeat:** Repeat steps 2-4 until all nodes have been v…

ruthheasman ·

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.