Skip to main content

dijkstra

Function dijkstra 

Source
pub fn dijkstra(g: &Graph, source: usize) -> Result<ShortestPaths, ErrorsJSL>
Expand description

Dijkstra’s algorithm with a binary heap, O((V + E) log V). Edge weights must be non-negative.