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
19ccc559
Commit
19ccc559
authored
Jul 19, 2015
by
Tiago Peixoto
Browse files
Fix possible infinite loop in minimize_blockmodel_dl()
parent
e24f60db
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/community/blockmodel.py
View file @
19ccc559
...
...
@@ -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
:
...
...
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