When understood in this way, it is clear how the algorithm necessarily finds the shortest path, however, it may also reveal one of the algorithm's weaknesses: its relative slowness in some topologies.
It may also reveal one of the algorithm's weaknesses: its relative slowness in some topologies. This is however. This is understood in this way, it is clear how the algorithm necessarily finds the shortest path.