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
f2f45f0a
Commit
f2f45f0a
authored
Sep 03, 2009
by
Tiago Peixoto
Browse files
Small fixes in docstrings to reflect changes in graph_draw()
parent
62dc2518
Changes
3
Show whitespace changes
Inline
Side-by-side
src/graph_tool/community/__init__.py
View file @
f2f45f0a
...
...
@@ -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
...
...
src/graph_tool/draw/__init__.py
View file @
f2f45f0a
...
...
@@ -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
...
...
src/graph_tool/generation/__init__.py
View file @
f2f45f0a
...
...
@@ -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
...
...
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