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
e1fa3a90
Commit
e1fa3a90
authored
Feb 23, 2013
by
Tiago Peixoto
Browse files
Fix mcmc_sweep() bug with filtered graphs
parent
bcf73e28
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/community/blockmodel.py
View file @
e1fa3a90
...
...
@@ -836,11 +836,8 @@ def mcmc_sweep(state, beta=1., sequential=True, verbose=False, vertices=None):
return
0.
,
0
if
vertices
is
None
:
u
=
state
.
g
u
.
stash_filter
()
vertices
=
libcommunity
.
get_vector
(
u
.
num_vertices
())
u
.
pop_filter
()
vertices
.
a
=
arange
(
len
(
vertices
.
a
))
vertices
=
libcommunity
.
get_vector
(
state
.
g
.
num_vertices
())
vertices
.
a
=
state
.
g
.
vertex_index
.
copy
(
"int"
).
fa
dS
,
nmoves
=
libcommunity
.
move_sweep
(
state
.
g
.
_Graph__graph
,
state
.
bg
.
_Graph__graph
,
...
...
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