node2vec_linkprediction
node2vec_linkprediction copied to clipboard
TypeError: 'int' object has no attribute '__getitem__'
Traceback (most recent call last):
File "link_prediction.py", line 548, in
the error line is at G.edges[edge[0]][edge[1]]['weight'] = 1. Just convert it to G[edge[0]][edge[1]]['weight'] = 1