Dijsktra's algorithm - GeeksforGeeks
www.geeksforgeeks.org › dijkstras-shortest-pathAug 31, 2022 · To understand the Dijkstra’s Algorithm lets take a graph and find the shortest path from source to all nodes. Consider below graph and src = 0 Step 1: The set sptSet is initially empty and distances assigned to vertices are {0, INF, INF, INF, INF, INF, INF, INF} where INF indicates infinite. Now pick the vertex with a minimum distance value.