node2vec_linkprediction icon indicating copy to clipboard operation
node2vec_linkprediction copied to clipboard

AttributeError: module 'node2vec' has no attribute 'Graph'

Open herobrine1010 opened this issue 3 years ago • 1 comments

Hi Docherty! I tried your code and encountered the error on class GraphN2V's definition: 屏幕截图 2021-04-06 194744 I'm using node2vec v0.4.2, networkx v2.5, and other packages seem to have nothing to do with this problem. Looking forward for your reply😁 B.T.W. The rest of the code is really performant!

herobrine1010 avatar Apr 06 '21 12:04 herobrine1010

convert class GraphN2V(node2vec.Graph): to class GraphN2V:

zpengc avatar Oct 26 '21 05:10 zpengc