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
ee978e1d
Commit
ee978e1d
authored
Sep 08, 2015
by
Tiago Peixoto
Browse files
Documentation fixes
parent
d6992aa4
Changes
2
Hide whitespace changes
Inline
Side-by-side
doc/graph_tool.rst
View file @
ee978e1d
...
...
@@ -181,8 +181,11 @@
.. autofunction:: load_graph
.. autofunction:: group_vector_property
.. autofunction:: ungroup_vector_property
.. autofunction:: map_property_values
.. autofunction:: infect_vertex_property
.. autofunction:: edge_endpoint_property
.. autofunction:: incident_edges_op
.. autofunction:: perfect_prop_hash
.. autofunction:: value_types
.. autofunction:: show_config
...
...
src/graph_tool/__init__.py
View file @
ee978e1d
...
...
@@ -1077,7 +1077,7 @@ def map_property_values(src_prop, tgt_prop, map_func):
>>> g = gt.collection.data["lesmis"]
>>> label_len = g.new_vertex_property("int64_t")
>>> gt.map_property_values(g.vp.label, label_len,
... la
bel
x: len(x))
... la
mbda
x: len(x))
>>> print(label_len.a)
[ 6 8 14 11 12 8 12 8 5 6 7 7 10 6 7 7 9 9 7 11 9 6 7 7 13
10 7 6 12 10 8 8 11 6 5 12 6 10 11 9 12 7 7 6 14 7 9 9 8 12
...
...
@@ -1908,8 +1908,8 @@ class Graph(object):
assumed to be numeric if ``edge_list`` is a :class:`~numpy.ndarray`, or
arbitrary python objects if it is not.
If given, `eprops` specifies edge property maps that will be filled
with
the remaining values at each row, if there are more than two.
If given,
`
`eprops`
`
specifies edge property maps that will be filled
with
the remaining values at each row, if there are more than two.
"""
self
.
__check_perms
(
"add_edge"
)
if
eprops
is
None
:
...
...
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