mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-13 01:59:49 +00:00
Fixed accidental code change
This commit is contained in:
parent
8ecee9a41c
commit
bface6dfa1
@ -92,7 +92,7 @@ class Matrix: # Public class to implement a graph
|
|||||||
count = 0
|
count = 0
|
||||||
for i in range(self.ROW):
|
for i in range(self.ROW):
|
||||||
for j in range(self.COL):
|
for j in range(self.COL):
|
||||||
if visited[i][j] is False and self.graph[i][j]:
|
if visited[i][j] is False and self.graph[i][j] == 1:
|
||||||
self.diffs(i, j, visited)
|
self.diffs(i, j, visited)
|
||||||
count += 1
|
count += 1
|
||||||
return count
|
return count
|
||||||
|
Loading…
x
Reference in New Issue
Block a user