pub fn dijkstra(g: &Graph, source: usize) -> Result<ShortestPaths, ErrorsJSL>
Dijkstra’s algorithm with a binary heap, O((V + E) log V). Edge weights must be non-negative.
O((V + E) log V)