Commit 749572d8 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix docstrings

parent 50b7f803
This diff is collapsed.
......@@ -128,7 +128,7 @@ def random_layout(g, shape=None, pos=None, dim=2):
>>> shape = [[50, 100], [1, 2], 4]
>>> pos = gt.random_layout(g, shape=shape, dim=3)
>>> pos[g.vertex(0)].a
array([ 68.72700594, 1.03142919, 2.56812658])
array([68.72700594, 1.03142919, 2.56812658])
"""
......
......@@ -920,8 +920,8 @@ def dijkstra_search(g, weight, source=None, visitor=DijkstraVisitor(), dist_map=
>>> print(pred.a)
[0 3 6 0 0 1 0 0 1 6]
>>> print(dist.a)
[ 0. 8.91915887 9.27141329 4.29277116 4.02118246
12.23513866 3.23790211 3.45487436 11.04391549 7.74858396]
[ 0. 8.91915887 9.27141329 4.29277116 4.02118246 12.23513866
3.23790211 3.45487436 11.04391549 7.74858396]
References
----------
......
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