You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error returned is when I try to follow the example.
Traceback (most recent call last):
File "cmty.py", line 122, in
sys.exit(main(sys.argv))
File "cmty.py", line 116, in main
Orig_deg = UpdateDeg(A, G.nodes())
File "cmty.py", line 64, in UpdateDeg
n = len(nodes) #len(A) ---> some ppl get issues when trying len() on sparse matrixes!
TypeError: object of type 'generator' has no len()
The text was updated successfully, but these errors were encountered:
Hi, I got something similar I have version 2.0 of networkx
Traceback (most recent call last):
File "/Users/gba/cmty.py", line 122, in
sys.exit(main(sys.argv))
File "/Users/gba/cmty.py", line 116, in main
Orig_deg = UpdateDeg(A, G.nodes())
File "/Users/gba/cmty.py", line 67, in UpdateDeg
deg_dict[nodes[i]] = B[i, 0]
TypeError: unhashable type: 'dict'
Error returned is when I try to follow the example.
Traceback (most recent call last):
File "cmty.py", line 122, in
sys.exit(main(sys.argv))
File "cmty.py", line 116, in main
Orig_deg = UpdateDeg(A, G.nodes())
File "cmty.py", line 64, in UpdateDeg
n = len(nodes) #len(A) ---> some ppl get issues when trying len() on sparse matrixes!
TypeError: object of type 'generator' has no len()
The text was updated successfully, but these errors were encountered: