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
0072e255
Commit
0072e255
authored
Nov 28, 2012
by
Tiago Peixoto
Browse files
Fix segfault when purging vertices with self-loops
parent
d9d99c0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/graph_filtering.cc
View file @
0072e255
...
...
@@ -277,7 +277,11 @@ void GraphInterface::PurgeVertices(boost::any aold_index)
edges
.
push_back
(
*
e
);
graph_traits
<
multigraph_t
>::
in_edge_iterator
ei
,
ei_end
;
for
(
tie
(
ei
,
ei_end
)
=
in_edges
(
v
,
_state
->
_mg
);
ei
!=
ei_end
;
++
ei
)
{
if
(
source
(
*
ei
,
_state
->
_mg
)
==
v
)
continue
;
edges
.
push_back
(
*
ei
);
}
for
(
size_t
j
=
0
;
j
<
edges
.
size
();
++
j
)
RemoveEdgeIndex
(
edges
[
j
]);
clear_vertex
(
v
,
_state
->
_mg
);
...
...
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