From 2b4ad77912cd7e113d22ea97e05e956f6708ab41 Mon Sep 17 00:00:00 2001 From: bartosz Date: Tue, 18 Jan 2022 13:38:48 +0100 Subject: [PATCH] fixed a copy mistake in dijkstra --- algorithms/dijkstra.py | 1 + 1 file changed, 1 insertion(+) diff --git a/algorithms/dijkstra.py b/algorithms/dijkstra.py index 7e9cfac..93a4519 100644 --- a/algorithms/dijkstra.py +++ b/algorithms/dijkstra.py @@ -107,4 +107,5 @@ if __name__ == "__main__": } print(dijkstra_algorithm(g, 7, 10)) + print(dijkstra_algorithm(g2, 1, 4, is_directed=True)) print(dijkstra_algorithm(g2, 1, 5, is_directed=True))