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
67e10f3d
Commit
67e10f3d
authored
Dec 18, 2014
by
Tiago Peixoto
Browse files
Property map creation docstring fix
parent
6761eebc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/__init__.py
View file @
67e10f3d
...
...
@@ -1740,7 +1740,7 @@ class Graph(object):
def
new_vertex_property
(
self
,
value_type
,
vals
=
None
):
"""Create a new (uninitialized) vertex property map of type ``value_type``,
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
),
self
.
__graph
.
GetVertexIndex
(),
libcore
.
any
()),
...
...
@@ -1756,7 +1756,7 @@ class Graph(object):
def
new_edge_property
(
self
,
value_type
,
vals
=
None
):
"""Create a new (uninitialized) edge property map of type
``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
),
self
.
__graph
.
GetEdgeIndex
(),
libcore
.
any
()),
...
...
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