Skip to content

Commit

Permalink
Fix non-convergence by switching between multiple partitions without …
Browse files Browse the repository at this point in the history
…improving modularity significantly
  • Loading branch information
Lucas Jeub authored and LJeub committed Nov 25, 2016
1 parent aa7df8d commit 5205ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iterated_genlouvain.m
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
mydisp('');

Q_old=-inf;
while ~isequal(S,S_old)
while ~isequal(S,S_old)&&norm(Q_old-Q)>10*eps
n_it=n_it+1;
S_old=S;
Q_old=Q;
Expand Down

0 comments on commit 5205ffc

Please sign in to comment.