Commit ee978e1d authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Documentation fixes

parent d6992aa4
...@@ -181,8 +181,11 @@ ...@@ -181,8 +181,11 @@
.. autofunction:: load_graph .. autofunction:: load_graph
.. autofunction:: group_vector_property .. autofunction:: group_vector_property
.. autofunction:: ungroup_vector_property .. autofunction:: ungroup_vector_property
.. autofunction:: map_property_values
.. autofunction:: infect_vertex_property .. autofunction:: infect_vertex_property
.. autofunction:: edge_endpoint_property .. autofunction:: edge_endpoint_property
.. autofunction:: incident_edges_op
.. autofunction:: perfect_prop_hash
.. autofunction:: value_types .. autofunction:: value_types
.. autofunction:: show_config .. autofunction:: show_config
......
...@@ -1077,7 +1077,7 @@ def map_property_values(src_prop, tgt_prop, map_func): ...@@ -1077,7 +1077,7 @@ def map_property_values(src_prop, tgt_prop, map_func):
>>> g = gt.collection.data["lesmis"] >>> g = gt.collection.data["lesmis"]
>>> label_len = g.new_vertex_property("int64_t") >>> label_len = g.new_vertex_property("int64_t")
>>> gt.map_property_values(g.vp.label, label_len, >>> gt.map_property_values(g.vp.label, label_len,
... label x: len(x)) ... lambda x: len(x))
>>> print(label_len.a) >>> 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 [ 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 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): ...@@ -1908,8 +1908,8 @@ class Graph(object):
assumed to be numeric if ``edge_list`` is a :class:`~numpy.ndarray`, or assumed to be numeric if ``edge_list`` is a :class:`~numpy.ndarray`, or
arbitrary python objects if it is not. arbitrary python objects if it is not.
If given, `eprops` specifies edge property maps that will be filled with If given, ``eprops`` specifies edge property maps that will be filled
the remaining values at each row, if there are more than two. with the remaining values at each row, if there are more than two.
""" """
self.__check_perms("add_edge") self.__check_perms("add_edge")
if eprops is None: if eprops is None:
......
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