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
b16c2341
Commit
b16c2341
authored
Jul 16, 2015
by
Tiago Peixoto
Browse files
Fix bug in graph_union() when copying property maps
parent
a3635d0b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/graph_tool/generation/__init__.py
View file @
b16c2341
...
...
@@ -1087,10 +1087,10 @@ def graph_union(g1, g2, intersection=None, props=None, include=False,
g1
.
properties
[(
p
.
key_type
(),
name
)]
=
p
if
not
include
:
for
name
,
p
in
gprops
[
0
]:
g1
.
graph_properties
[
name
]
=
p
.
copy
()
g1
.
graph_properties
[
name
]
=
g1
.
own_property
(
p
.
copy
()
)
for
name
,
p
in
gprops
[
1
]:
if
name
not
in
g1
.
graph_properties
:
g1
.
graph_properties
[
name
]
=
p
.
copy
()
g1
.
graph_properties
[
name
]
=
g1
.
own_property
(
p
.
copy
()
)
n_props
=
[]
if
len
(
n_props
)
>
0
:
...
...
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