mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-27 00:46:43 +00:00
1. Removed ;
This commit is contained in:
parent
06c7827a94
commit
c9debdbd41
@ -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
|
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):
|
def addEdge(self, u, v, w):
|
||||||
self.dp[u][v] = w;
|
self.dp[u][v] = w
|
||||||
|
|
||||||
def floyd_warshall(self):
|
def floyd_warshall(self):
|
||||||
for k in range(0,self.N):
|
for k in range(0,self.N):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user