leoribeiro / struc2vec

This repository provides a reference implementation of struc2vec.
MIT License
381 stars 116 forks source link

issue attribute #15

Open tohich51 opened 5 years ago

tohich51 commented 5 years ago
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'
TsingH-googl commented 5 years ago

Hello, this version of struc2vec package is not compatible with python 3 while it is compatible with only python 2.

sebkaz commented 1 year ago

For Python3 You can use https://github.com/sebkaz/struc2vec