Fix comparison of data in Vertex class
This commit is contained in:
parent
5d87eb021f
commit
791754cd30
1 changed files with 1 additions and 1 deletions
|
|
@ -689,7 +689,7 @@ class Vertex:
|
||||||
ids_are_equal = self.id == __o.id
|
ids_are_equal = self.id == __o.id
|
||||||
# self._data is a dict and we need to compare them
|
# self._data is a dict and we need to compare them
|
||||||
# to check if they are equal
|
# 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
|
return ids_are_equal and data_are_equal
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue