Update todo
This commit is contained in:
@@ -96,6 +96,7 @@ impl Ord for DistanceOrderedVertex {
|
||||
}
|
||||
|
||||
// TODO: Maybe introduce a return struct type for Dijkstra's algorithm?
|
||||
// TODO: Maybe variant of Dijkstra's algorithm without predecessors?
|
||||
fn dijkstra(graph: &Graph, source: Vertex) -> (Vec<Option<u32>>, Vec<Option<Vertex>>) {
|
||||
let mut distances = vec![None; graph.vertex_count()];
|
||||
let mut predecessors = vec![None; graph.vertex_count()];
|
||||
|
||||
Reference in New Issue
Block a user