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
7c957a60
Commit
7c957a60
authored
May 06, 2008
by
Tiago Peixoto
Browse files
Fix graph copying
Edge indexes weren't properly copied.
parent
dab78eee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/graph_copy.cc
View file @
7c957a60
...
...
@@ -59,7 +59,7 @@ struct graph_copy
size_t
t
=
index_map
[
src_vertex_index
[
target
(
*
e
,
src
)]];
typename
graph_traits
<
GraphDst
>::
edge_descriptor
new_e
=
add_edge
(
vertex
(
s
,
dst
),
vertex
(
t
,
dst
),
dst
).
first
;
dst_edge_index
[
new_e
]
=
src_edge_index
[
new_
e
];
dst_edge_index
[
new_e
]
=
src_edge_index
[
*
e
];
}
}
};
...
...
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