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: 'MultiDiGraph' object has no attribute 'nodes_iter' #1

Open
KSWilkinson opened this issue Sep 28, 2017 · 2 comments
Open

Comments

@KSWilkinson
Copy link

Python script was initialized through the Windows command prompt (Windows 10). Windows shell output is below. Thank you

C:\Python27\Lib\site-packages\community-Tracking-GED-master>python Tracker.py community_edges.json
Initialize inclusions dict start...
Traceback (most recent call last):
File "Tracker.py", line 101, in
tracker.compare_communities()
File "Tracker.py", line 32, in compare_communities
Dhypergraph = self.initialize_inclusions(index,Dhypergraph)
File "Tracker.py", line 71, in initialize_inclusions
inclusion, inversed = inclusions.compute_inclusion()
File "C:\Python27\Lib\site-packages\community-Tracking-GED-master\inclusion.py", line 14, in compute_inclusion
inclusion, inversed_inclusion = self.find_inclusions(self.g1, self.g2)
File "C:\Python27\Lib\site-packages\community-Tracking-GED-master\inclusion.py", line 98, in find_inclusions
self.find_group_quality(intersection, g1_with_degrees))
File "C:\Python27\Lib\site-packages\community-Tracking-GED-master\inclusion.py", line 37, in find_group_quality
g1_sum = sum([d['centrality'] for node,d in g1.nodes_iter(data=True)])
AttributeError: 'MultiDiGraph' object has no attribute 'nodes_iter'

@gilcu3
Copy link
Contributor

gilcu3 commented Nov 2, 2017

should be fixed by pull request

@dimitrv
Copy link
Member

dimitrv commented Nov 8, 2017

Hi,
Thanks for the feedback, i will fix it.
Are you using the networkx-2.0 library?

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