Given a weighted, directed graph with **n** vertices (non-negative edge weights) and a source vertex, return the **shortest distance** from the source to every other vertex using **Dijkstra's algorithm**. Unreachable vertices should have distance **Infinity**.
Step-by-step visualizer available!
Switch to the Visualize ✨ tab to watch this algorithm run step-by-step on a live graph before you code.