Commit 19ccc559 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix possible infinite loop in minimize_blockmodel_dl()

parent e24f60db
......@@ -2396,6 +2396,9 @@ def minimize_blockmodel_dl(g, deg_corr=True, overlap=False, ec=None,
else:
break
if max_B - mid_B <= 1:
break
# Fibonacci search
while True:
if max_B - mid_B > mid_B - min_B:
......
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