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 #38

Open
ZaiYu411 opened this issue Apr 9, 2023 · 2 comments
Open

AttributeError #38

ZaiYu411 opened this issue Apr 9, 2023 · 2 comments

Comments

@ZaiYu411
Copy link

ZaiYu411 commented Apr 9, 2023

我用的networkx-3.1
如果出现错误:AttributeError: module 'networkx' has no attribute 'from_numpy_matrix',可以按如下方法解决问题:
将utils中的nx_graph = nx.from_numpy_matrix(graph),改为nx_graph = nx.from_numpy_array(graph)

@Logic17
Copy link

Logic17 commented May 30, 2024

感谢分享

@Pipapplepie
Copy link

感谢,刚好遇到同样的问题,已解决!

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

3 participants