Commit f2f45f0a authored by Tiago Peixoto's avatar Tiago Peixoto

Small fixes in docstrings to reflect changes in graph_draw()

parent 62dc2518
......@@ -132,13 +132,13 @@ def community_structure(g, n_iter, n_spins, gamma=1.0, corr= "erdos",
... history_file="community-history1")
>>> gt.graph_draw(g, pos=pos, pin=True, vsize=0.3, vcolor=spins,
... output="comm1.png")
(...)
<...>
>>> spins = gt.community_structure(g, 10000, 40, t_range=(5, 0.1),
... gamma=2.5,
... history_file="community-history2")
>>> gt.graph_draw(g, pos=pos, pin=True, vsize=0.3, vcolor=spins,
... output="comm2.png")
(...)
<...>
>>> clf()
>>> xlabel("iterations")
<...>
......@@ -316,7 +316,7 @@ def condensation_graph(g, prop, weight=None):
>>> gt.graph_draw(ng[0], vsize=size, vcolor=size, splines=True,
... eprops={"len":20, "penwidth":10}, vprops={"penwidth":10},
... output="comm-network.png")
(...)
<...>
.. figure:: comm-network.png
:align: center
......
......@@ -220,7 +220,7 @@ def graph_draw(g, pos=None, size=(15, 15), pin=False, layout= "neato",
>>> ebet.get_array()[:] += 10
>>> gt.graph_draw(g, vsize=deg, vcolor=deg, elen=10, ecolor=ebet,
... penwidth=ebet, overlap="prism", output="graph-draw.png")
(...)
<...>
.. figure:: graph-draw.png
:align: center
......
......@@ -265,14 +265,14 @@ def random_rewire(g, strat= "uncorrelated", parallel_edges = False,
>>> seed(42)
>>> g = gt.random_graph(1000, lambda: sample_k(10),
... lambda i,j: exp(abs(i-j)), directed=False)
>>> gt.graph_draw(g, output="rewire_orig.png")
(...)
>>> gt.graph_draw(g, layout="arf", output="rewire_orig.png")
<...>
>>> gt.random_rewire(g, "correlated")
>>> gt.graph_draw(g, output="rewire_corr.png")
(...)
>>> gt.graph_draw(g, layout="arf", output="rewire_corr.png")
<...>
>>> gt.random_rewire(g)
>>> gt.graph_draw(g, output="rewire_uncorr.png")
(...)
>>> gt.graph_draw(g, layout="arf", output="rewire_uncorr.png")
<...>
.. figure:: rewire_orig.png
......
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