Concept Flow - Dijkstra's Algorithm Single Source Shortest Path
Start with source node
Initialize distances: source=0, others=∞
Create priority queue with source
While queue not empty
Extract node with smallest distance
For each neighbor
Calculate new distance
If new distance < known distance
Update distance
Add neighbor to queue
Repeat until queue empty
Distances finalized
Start from the source node, update shortest distances to neighbors using a priority queue until all nodes have shortest paths.
