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
798d3cd9
Commit
798d3cd9
authored
Apr 21, 2015
by
Tiago Peixoto
Browse files
Fix some docstring errors
parent
af98d1df
Changes
2
Hide whitespace changes
Inline
Side-by-side
doc/quickstart.rst
View file @
798d3cd9
...
...
@@ -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])
1
1
1
2
>>> print(int(v))
1
1
1
2
Edges and vertices can also be removed at any time with the
...
...
src/graph_tool/draw/cairo_draw.py
View file @
798d3cd9
...
...
@@ -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
...
...
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