Commit 16f65c80 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

PropertyMap.set_value(): Attempt to convert user-supplied value

parent 42d89da9
......@@ -798,6 +798,7 @@ class PropertyMap(object):
def set_value(self, val):
"""Sets all values in the property map to ``val``."""
g = self.get_graph()
val = self.__convert(val)
if self.key_type() == "v":
libcore.set_vertex_property(g._Graph__graph, _prop("v", g, self), val)
elif self.key_type() == "e":
Supports Markdown
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