Commit f9684ed2 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix problem in (Vertex/Edge)PropertyMap.__eq__() when compared to other types

parent 9e70cee8
Pipeline #652 passed with stage
in 140 minutes and 9 seconds
......@@ -856,6 +856,8 @@ class VertexPropertyMap(PropertyMap):
return PropertyArray(a, self)
def __eq__(self, other):
if not isinstance(other, VertexPropertyMap):
return False
g = self.get_graph()
if g.base is not other.get_graph().base:
return False
......@@ -898,6 +900,8 @@ class EdgePropertyMap(PropertyMap):
return PropertyArray(a, self)
def __eq__(self, other):
if not isinstance(other, EdgePropertyMap):
return False
g = self.get_graph()
if g.base is not other.get_graph().base:
return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment