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
74cfb8a4
Commit
74cfb8a4
authored
Aug 08, 2016
by
Tiago Peixoto
Browse files
Graph.prune_vertices(): Set correct base for GraphView objects
parent
1dad4c00
Pipeline
#209
failed with stage
in 4140 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/__init__.py
View file @
74cfb8a4
...
...
@@ -2571,6 +2571,8 @@ class Graph(object):
self
.
properties
[(
pmaps
[
-
1
].
key_type
(),
pname
)]
=
pmaps
[
-
1
]
new_g
=
Graph
(
self
,
prune
=
(
True
,
False
,
False
))
if
hasattr
(
self
,
"_GraphView__base"
):
self
.
_GraphView__base
=
new_g
self
.
__graph
=
new_g
.
__graph
self
.
set_vertex_filter
(
None
)
...
...
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