From Breadth First Search Algorithm to Dijkstra Shortest Distance from Source to Every Vertex
The BFS (Breadth First Search Algorithm) expands the children nodes level by level, which allows you find the shortest distance between source and every other vertices. However, the graph …