Introduction - If you have any usage issues, please Google them yourself
Figure about the shortest path algorithm, commonly used Dijkstra algorithm and SPFA or heap can be used to optimize or A* algorithm to accelerate dramatically reduce the time complexity. However, this problem in the long side of the figure is 1, using BFS time complexity compared with Dijkstra and SPFA have a more significant reduction, even though it looked easier to BFS