Fixed accidental code change

This commit is contained in:
CheerfulBear22 2025-02-04 19:28:28 +00:00
parent 8ecee9a41c
commit bface6dfa1

View File

@ -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