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
e5a0b5e4
Commit
e5a0b5e4
authored
Jun 01, 2008
by
Tiago Peixoto
Browse files
Fix edge re-indexing, when only one edge is deleted
parent
818bf153
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/graph_filtering.cc
View file @
e5a0b5e4
...
...
@@ -217,10 +217,10 @@ void GraphInterface::ReIndexEdges()
for
(
tie
(
e
,
e_end
)
=
out_edges
(
*
v
,
_mg
);
e
!=
e_end
;
++
e
)
{
size_t
index
=
_edge_index
[
*
e
];
if
(
index
>=
n_edges
)
continue
;
if
(
index
>=
edge_map
.
size
())
edge_map
.
resize
(
index
+
1
,
make_pair
(
edge_t
(),
false
));
if
(
index
>=
n_edges
)
continue
;
if
(
!
edge_map
[
index
].
second
)
edge_map
[
index
]
=
make_pair
(
*
e
,
true
);
}
...
...
Write
Preview
Supports
Markdown
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