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

networkx updated #76

Closed
phd18 opened this issue Feb 14, 2019 · 0 comments · Fixed by #77
Closed

networkx updated #76

phd18 opened this issue Feb 14, 2019 · 0 comments · Fixed by #77

Comments

@phd18
Copy link

phd18 commented Feb 14, 2019

file: ui.py
317: node_ids = {node: self.AddNode(node) for node in self._graph.nodes_iter()}
319: for frm, to in self._graph.edges_iter():
say error

https://stackoverflow.com/questions/33734836/graph-object-has-no-attribute-nodes-iter-in-networkx-module-python
You are probably using the pre-release version of networkx-2.0 which has removed the nodes_iter() method and now provides the the nodes() method with the same functionality. See this for details on the networkx-2.0 changes.

you just should change
nodes_iter() -> nodes()
edges_iter() -> edges()

Best Regards

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

Successfully merging a pull request may close this issue.

1 participant