Commit 798d3cd9 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix some docstring errors

parent af98d1df
......@@ -139,7 +139,6 @@ descriptors:
.. doctest::
>>> g = Graph()
>>> vlist = g.add_vertex(10)
>>> print(len(list(vlist)))
10
......@@ -155,9 +154,9 @@ vertex descriptor to an ``int``.
>>> v = g.add_vertex()
>>> print(g.vertex_index[v])
11
12
>>> print(int(v))
11
12
Edges and vertices can also be removed at any time with the
......
......@@ -1258,13 +1258,15 @@ def get_hierarchy_control_points(g, t, tpos, beta=0.8, cts=None):
>>> cts = gt.get_hierarchy_control_points(g, t, tpos)
>>> pos = g.own_property(tpos)
>>> b = state.levels[0].b
>>> gt.graph_draw(g, pos=pos, vertex_fill_color=b, vertex_shape=b, edge_control_points=cts,
>>> shape = b.copy()
>>> shape.a %= 14
>>> gt.graph_draw(g, pos=pos, vertex_fill_color=b, vertex_shape=shape, edge_control_points=cts,
... edge_color=[0, 0, 0, 0.3], vertex_anchor=0, output="netscience_nested_mdl.pdf")
<...>
.. testcleanup:: nested_cts
gt.graph_draw(g, pos=pos, vertex_fill_color=b, vertex_shape=b, edge_control_points=cts, edge_color=[0, 0, 0, 0.3], vertex_anchor=0, output="netscience_nested_mdl.png")
gt.graph_draw(g, pos=pos, vertex_fill_color=b, vertex_shape=shape, edge_control_points=cts, edge_color=[0, 0, 0, 0.3], vertex_anchor=0, output="netscience_nested_mdl.png")
.. figure:: netscience_nested_mdl.*
:align: center
......
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