From 3adfb4b9ebc86551d854eb861a5126b37419406f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Mon, 18 May 2026 16:15:46 +0200 Subject: [PATCH] Add todo for custom weight type for Dijkstra's algorithm --- src/algorithms.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/algorithms.rs b/src/algorithms.rs index 01a6c31..10736bb 100644 --- a/src/algorithms.rs +++ b/src/algorithms.rs @@ -27,6 +27,7 @@ pub struct DijkstraResult { pub predecessors: VertexMap>, } +// TODO: Generalize the return type of the weight function. pub fn dijkstra(graph: &G, source: G::Vertex, weight: W) -> DijkstraResult where G: GraphTopology,