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
66e5720f
Commit
66e5720f
authored
Oct 16, 2014
by
Tiago Peixoto
Browse files
Update edge filter after purging vertices
parent
314d647b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/__init__.py
View file @
66e5720f
...
...
@@ -2116,6 +2116,11 @@ class Graph(object):
pmap
.
_PropertyMap__map
=
new_pmap
.
_PropertyMap__map
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
):
"""Remove all edges of the graph which are currently being filtered out,
and return it to the unfiltered state. This operation is not reversible."""
...
...
Write
Preview
Markdown
is supported
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