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
252f3583
Commit
252f3583
authored
Mar 31, 2016
by
Tiago Peixoto
Browse files
Fix deep copy of property maps
parent
0dde437d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/__init__.py
View file @
252f3583
...
...
@@ -1721,7 +1721,10 @@ class Graph(object):
return
self
.
copy
()
def
__deepcopy__
(
self
,
memo
):
return
self
.
copy
()
g
=
self
.
copy
()
for
k
,
prop
in
[
x
for
x
in
g
.
properties
if
x
[
1
].
value_type
==
"python::object"
]:
g
.
properties
[
k
]
=
copy
.
deepcopy
(
prop
)
def
__repr__
(
self
):
# provide more useful information
...
...
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