Commit 6d3b293c authored by Tiago Peixoto's avatar Tiago Peixoto

Implement PropertyDict.clear()

parent dc7f9f73
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment