由于前人已经整理,本文挑了一种较详细的讲解方法。 https://www.freecodecamp.org/chinese/news/dijkstras-shortest-path-algorithm-visual-introduction/