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

AttributeError: module 'networkx' has no attribute 'from_numpy_matrix' #14

Open
RylanSchaeffer opened this issue Oct 9, 2023 · 0 comments

Comments

@RylanSchaeffer
Copy link

The given example:

    communities, frames = louvain_method(adj_matrix=adj_matrix)
    ax = draw_communities(adj_matrix, communities)

throws an error: AttributeError: module 'networkx' has no attribute 'from_numpy_matrix'. According to https://stackoverflow.com/a/75284568, it seems like this line is now no longer valid:

https://github.com/shobrook/communities/blob/master/communities/visualization/draw_communities.py#L188

Can you please update the library to use G = nx.from_numpy_array(adj_matrix) instead?

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

No branches or pull requests

1 participant