struc2vec icon indicating copy to clipboard operation
struc2vec copied to clipboard

issue attribute

Open tohich51 opened this issue 5 years ago • 2 comments

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'

tohich51 avatar May 22 '19 15:05 tohich51

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

TsingH-googl avatar Aug 19 '19 02:08 TsingH-googl

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

sebkaz avatar Aug 19 '23 08:08 sebkaz