From c9debdbd413170630bd0050c1a8e816fe8c5b143 Mon Sep 17 00:00:00 2001 From: ashu01 Date: Sun, 31 Dec 2017 14:36:29 +0530 Subject: [PATCH] 1. Removed ; --- dynamic_programming/FloydWarshall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamic_programming/FloydWarshall.py b/dynamic_programming/FloydWarshall.py index bf7714124..038499ca0 100644 --- a/dynamic_programming/FloydWarshall.py +++ b/dynamic_programming/FloydWarshall.py @@ -8,7 +8,7 @@ class Graph: self.dp = [[math.inf for j in range(0,N)] for i in range(0,N)] # dp[i][j] stores minimum distance from i to j def addEdge(self, u, v, w): - self.dp[u][v] = w; + self.dp[u][v] = w def floyd_warshall(self): for k in range(0,self.N):