Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
f9684ed2
Commit
f9684ed2
authored
Jun 25, 2020
by
Tiago Peixoto
Browse files
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/__init__.py
View file @
f9684ed2
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment