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
5faf4043
Commit
5faf4043
authored
Aug 16, 2009
by
Tiago Peixoto
Browse files
Fix example in community_structure()
load() function no longer supported in scipy.
parent
d34568d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/community/__init__.py
View file @
5faf4043
...
...
@@ -144,7 +144,7 @@ def community_structure(g, n_iter, n_spins, gamma=1.0, corr= "erdos",
<...>
>>> ylabel("number of communities")
<...>
>>> a = load("community-history1").transpose()
>>> a = load
txt
("community-history1").transpose()
>>> plot(a[0], a[2])
[...]
>>> savefig("comm1-hist.png")
...
...
@@ -153,7 +153,7 @@ def community_structure(g, n_iter, n_spins, gamma=1.0, corr= "erdos",
<...>
>>> ylabel("number of communities")
<...>
>>> a = load("community-history2").transpose()
>>> a = load
txt
("community-history2").transpose()
>>> plot(a[0], a[2])
[...]
>>> savefig("comm2-hist.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