Commit 0da3e441 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug when pickling PropertyMap objects that belong to filtered graphs

parent a18ba05a
Pipeline #37 passed with stage
......@@ -892,12 +892,13 @@ class PropertyMap(object):
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)
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
Supports Markdown
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