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

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,
if max_B - mid_B <= 1:
# Fibonacci search
while True:
if max_B - mid_B > mid_B - min_B:
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