Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

community_louvain issue: BCTParamError: Modularity infinite loop style G #97

Open
AlvaroDeleglise opened this issue Apr 20, 2021 · 1 comment

Comments

@AlvaroDeleglise
Copy link

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.

@aestrivex
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants