-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
networkx.degree(...) yields a networkx.classes.reportviews.DegreeView object,
which has no method called *.values()
so, I think:
- line 16 in basicNetworkMetrics.py should be modified to
dict(nx.degree(g)) - line 6 in basicNetworkMetrics2.py to
for n in g.nodes():
line 27 tod3 = dict(nx.degree(g2)) - line 23 in basicNetworkMetrics3.py to
graphsSorted = sorted(graphs, key=len, reverse=True)
line 31 tographDegree = dict(nx.degree(graph)) - line 11 in basicNetworkMetrics5.py to
graphDegree = dict(nx.degree(g)) - line 10 in basicNetworkMetrics6.py to
graphs = sorted(list(nx.connected_component_subgraphs(g)), key=len, reverse=True)
line 15 tographDegree = dict(nx.degree(ego)) - line 18 in basicNetworkMetrics7.py to
graphDegree = dict(nx.degree(graph)) - line 17 in basicNetworkMetrics8.py to
graphDegree = dict(nx.degree(ego)) - line 19 in basicNetworkMetrics9.py to
graphDegree = dict(nx.degree(ego)) - line 24 in bonusWeightedGraph.py to
d = dict(nx.degree(ego))
Metadata
Metadata
Assignees
Labels
No labels