Commit 67e10f3d authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Property map creation docstring fix

parent 6761eebc
...@@ -1740,7 +1740,7 @@ class Graph(object): ...@@ -1740,7 +1740,7 @@ class Graph(object):
def new_vertex_property(self, value_type, vals=None): def new_vertex_property(self, value_type, vals=None):
"""Create a new (uninitialized) vertex property map of type ``value_type``, """Create a new (uninitialized) vertex property map of type ``value_type``,
and return it. If provided, the values will be initialized by ``vals``, and return it. If provided, the values will be initialized by ``vals``,
which should be a sequence.""" which should be either a sequence or a single value."""
prop = PropertyMap(new_vertex_property(_type_alias(value_type), prop = PropertyMap(new_vertex_property(_type_alias(value_type),
self.__graph.GetVertexIndex(), self.__graph.GetVertexIndex(),
libcore.any()), libcore.any()),
...@@ -1756,7 +1756,7 @@ class Graph(object): ...@@ -1756,7 +1756,7 @@ class Graph(object):
def new_edge_property(self, value_type, vals=None): def new_edge_property(self, value_type, vals=None):
"""Create a new (uninitialized) edge property map of type """Create a new (uninitialized) edge property map of type
``value_type``, and return it. If provided, the values will be ``value_type``, and return it. If provided, the values will be
initialized by ``vals``, which should be a sequence.""" initialized by ``vals``, which should be a sequence or a single value."""
prop = PropertyMap(new_edge_property(_type_alias(value_type), prop = PropertyMap(new_edge_property(_type_alias(value_type),
self.__graph.GetEdgeIndex(), self.__graph.GetEdgeIndex(),
libcore.any()), libcore.any()),
......
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