NumPy allowed · plain Python earns 10 bonus points
Find shortest paths from a source to all nodes in a weighted graph using Dijkstra's algorithm.
Implement dijkstra_shortest_paths(n, edges, src): use a priority queue (min-heap) to explore nodes in order of current shortest tentative distance.
dijkstra_shortest_paths(n: int, edges: list[list[int]], src: int) -> dict[int, int]