Dijkstra Shortest Path
Given a directed weighted graph with `n` vertices numbered from `0` to `n - 1`, an edge list `edges` where each edge is `[u, v, w]` (a directed edge from `u` to `v` with non-negative integer weight `w`), and a source vertex `src`, return an array `dist` of length `n` where `dist[i]` is the length of a shortest path from `src` to `i`, or `-1` when `i` is unreachable from `src`.