mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-12 17:49:50 +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
|
||||
for i in range(self.ROW):
|
||||
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)
|
||||
count += 1
|
||||
return count
|
||||
|
Loading…
x
Reference in New Issue
Block a user