Fix comparison of data in Vertex class

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-01 22:57:15 -03:00
commit 791754cd30

View file

@ -689,7 +689,7 @@ class Vertex:
ids_are_equal = self.id == __o.id
# self._data is a dict and we need to compare them
# to check if they are equal
data_are_equal = self._data == __o._data
data_are_equal = self.data == __o.data
return ids_are_equal and data_are_equal
except AttributeError:
return False