Commit e1fa3a90 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix mcmc_sweep() bug with filtered graphs

parent bcf73e28
......@@ -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
vertices = libcommunity.get_vector(u.num_vertices())
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,,
Supports Markdown
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