struc2vec
struc2vec copied to clipboard
issue attribute
Traceback (most recent call last):
File "src/main.py", line 128, in <module>
main(args)
File "src/main.py", line 121, in main
G = exec_struc2vec(args)
File "src/main.py", line 97, in exec_struc2vec
G = struc2vec.Graph(G, args.directed, args.workers, untilLayer = until_layer)
File "/Users/anton/Downloads/struc2vec-master/src/struc2vec.py", line 20, in __init__
self.G = g.gToDict()
File "/Users/anton/Downloads/struc2vec-master/src/graph.py", line 127, in gToDict
for k,v in self.iteritems():
AttributeError: 'Graph' object has no attribute 'iteritems'
Hello, this version of struc2vec package is not compatible with python 3 while it is compatible with only python 2.
For Python3 You can use https://github.com/sebkaz/struc2vec