Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tiago Peixoto
graph-tool
Commits
6d3b293c
Commit
6d3b293c
authored
Mar 25, 2013
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement PropertyDict.clear()
parent
dc7f9f73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/graph_tool/__init__.py
src/graph_tool/__init__.py
+5
-0
No files found.
src/graph_tool/__init__.py
View file @
6d3b293c
...
...
@@ -908,6 +908,11 @@ class PropertyDict(dict):
self
.
del_func
(
self
.
g
,
key
)
dict
.
__delitem__
(
self
,
key
)
def
clear
(
self
):
for
k
in
self
.
keys
():
self
.
del_func
(
self
.
g
,
k
)
dict
.
clear
(
self
)
################################################################################
# Graph class
# The main graph interface
...
...
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