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
6d3b293c
Commit
6d3b293c
authored
Mar 25, 2013
by
Tiago Peixoto
Browse files
Implement PropertyDict.clear()
parent
dc7f9f73
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/__init__.py
View file @
6d3b293c
...
@@ -908,6 +908,11 @@ class PropertyDict(dict):
...
@@ -908,6 +908,11 @@ class PropertyDict(dict):
self
.
del_func
(
self
.
g
,
key
)
self
.
del_func
(
self
.
g
,
key
)
dict
.
__delitem__
(
self
,
key
)
dict
.
__delitem__
(
self
,
key
)
def
clear
(
self
):
for
k
in
self
.
keys
():
self
.
del_func
(
self
.
g
,
k
)
dict
.
clear
(
self
)
################################################################################
################################################################################
# Graph class
# Graph class
# The main graph interface
# The main graph interface
...
...
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