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
ceabe654
Commit
ceabe654
authored
Mar 06, 2011
by
Tiago Peixoto
Browse files
Fix graph copy
This fixes a bug where the edge index metadata was not properly copied.
parent
641d0024
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/graph_copy.cc
View file @
ceabe654
...
...
@@ -76,7 +76,9 @@ GraphInterface::GraphInterface(const GraphInterface& gi, bool keep_ref)
{
if
(
keep_ref
)
return
;
_state
->
_nedges
=
_state
->
_max_edge_index
=
0
;
_state
->
_nedges
=
gi
.
_state
->
_nedges
;
_state
->
_max_edge_index
=
gi
.
_state
->
_max_edge_index
;
_state
->
_free_indexes
=
gi
.
_state
->
_free_indexes
;
graph_copy
()(
_state
->
_mg
,
gi
.
_state
->
_mg
,
_vertex_index
,
gi
.
_vertex_index
,
_edge_index
,
gi
.
_edge_index
);
// filters will be copied in python
...
...
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