Commit 66e5720f authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Update edge filter after purging vertices

parent 314d647b
...@@ -2116,6 +2116,11 @@ class Graph(object): ...@@ -2116,6 +2116,11 @@ class Graph(object):
pmap._PropertyMap__map = new_pmap._PropertyMap__map pmap._PropertyMap__map = new_pmap._PropertyMap__map
del self.properties[(pmap.key_type(), pname)] del self.properties[(pmap.key_type(), pname)]
# update edge filter if set
efilt = self.get_edge_filter()
if efilt[0] is not None:
self.set_edge_filter(efilt[0], efilt[1])
def purge_edges(self): def purge_edges(self):
"""Remove all edges of the graph which are currently being filtered out, """Remove all edges of the graph which are currently being filtered out,
and return it to the unfiltered state. This operation is not reversible.""" and return it to the unfiltered state. This operation is not reversible."""
......
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