bctpy icon indicating copy to clipboard operation
bctpy copied to clipboard

community_louvain issue: BCTParamError: Modularity infinite loop style G

Open AlvaroDeleglise opened this issue 3 years ago • 2 comments

Hi, For some undirected and weighted networks, when I run the community_louvain function an error message emerges: "BCTParamError: Modularity infinite loop style G. Please contact the developer". Does anyone have an idea how I can solve this?

Here I paste the lines of the function that are causing this problem:

while q - q0 > 1e-10: it = 0 flag = True while flag: it += 1 if it > 1000: raise BCTParamError('Modularity infinite loop style G. ' 'Please contact the developer.')

Thanks in advance.

AlvaroDeleglise avatar Apr 20 '21 15:04 AlvaroDeleglise

Sorry for very long delay, I need an example matrix that causes the error.

aestrivex avatar Aug 25 '22 21:08 aestrivex