shenweichen / GraphEmbedding

Implementation and experiments of graph embedding algorithms.
MIT License
3.63k stars 990 forks source link

ZeroDivisionError #46

Closed niruochengfeng05 closed 3 years ago

niruochengfeng05 commented 3 years ago

在将node2vec代码应用在新的数据集上,存在edge weights为0的情况, 出现ZeroDivisionError. 调整walker.py的line 185,186代码, 添加try except statement, 用append item to empty list的形式替代原来的list comprehension,仍然报错,不知道是什么原因。谢谢

niruochengfeng05 commented 3 years ago

Resolved