Initial release #1

Merged
warrence merged 102 commits from dev into main 2026-06-30 10:26:52 +02:00
Showing only changes of commit e879316a4c - Show all commits
+1
View File
@@ -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()];