Skip to content
GitLab
Menu
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
0da3e441
Commit
0da3e441
authored
Oct 06, 2015
by
Tiago Peixoto
Browse files
Fix bug when pickling PropertyMap objects that belong to filtered graphs
parent
a18ba05a
Pipeline
#37
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/__init__.py
View file @
0da3e441
...
...
@@ -892,12 +892,13 @@ class PropertyMap(object):
else
:
u
=
GraphView
(
g
,
skip_vfilt
=
True
,
skip_efilt
=
True
)
if
key_type
==
"v"
:
pmap
=
g
.
new_vertex_property
(
value_type
,
vals
=
vals
)
pmap
=
u
.
new_vertex_property
(
value_type
,
vals
=
vals
)
elif
key_type
==
"e"
:
pmap
=
g
.
new_edge_property
(
value_type
,
vals
=
vals
)
pmap
=
u
.
new_edge_property
(
value_type
,
vals
=
vals
)
else
:
pmap
=
g
.
new_graph_property
(
value_type
)
pmap
[
g
]
=
vals
pmap
=
u
.
new_graph_property
(
value_type
)
pmap
[
u
]
=
vals
pmap
=
g
.
own_property
(
pmap
)
self
.
__map
=
pmap
.
__map
self
.
__g
=
pmap
.
__g
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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