bctpy
bctpy copied to clipboard
community_louvain issue: BCTParamError: Modularity infinite loop style G
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.
Sorry for very long delay, I need an example matrix that causes the error.