Commit 441463ed authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug in init_nested_state() with overlapping states

parent 17f3d190
Pipeline #106 failed with stage
......@@ -1087,7 +1087,7 @@ def init_nested_state(g, Bs, ec=None, deg_corr=True, overlap=False,
deg_corr=deg_corr == "full")[0]
if B == 1:
bstate = bstate.copy(b=zeros(bstate.N, dtype="int"))
bstate = bstate.copy(b=zeros(bstate.g.num_vertices(), dtype="int"))
bstate = multilevel_minimize(bstate, B, nsweeps=nsweeps,
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