aditya-grover / node2vec

http://snap.stanford.edu/node2vec/
MIT License
2.6k stars 912 forks source link

TypeError: object of type 'map' has no len() #35

Open ghost opened 6 years ago

ghost commented 6 years ago
2018-04-02 3 55 52
songzenghui commented 6 years ago

Because python2's map function is different from python3's. Try to modify line 86 in main.py to walks = [list(map(str, walk)) for walk in walks] If you run main.py with python2,it worked without modifying the code @ranzeng