From c8ef7c2e314dae1c9bb92cc21ae0be596d05c042 Mon Sep 17 00:00:00 2001
From: Louis Navarre <louisnavarre@hotmail.com>
Date: Tue, 17 Jan 2023 11:35:11 +0000
Subject: [PATCH] Update python code with TODO

---
 shortest_path.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shortest_path.py b/shortest_path.py
index f3a95ed..a68742f 100644
--- a/shortest_path.py
+++ b/shortest_path.py
@@ -99,7 +99,7 @@ if __name__ == "__main__":
         for i in range(nb_nodes):
             dist, path = bellman_ford(table, i)
             if dist == -1:
-                continue
+                continue  # TODO: if there is no shortest path (negative cycle or empty path), put a 0 value instead of not showing it at all
 
             if output_fd == sys.stdout or output_fd == sys.stderr:
                 print("source : "+str(i))
-- 
GitLab