phanein / deepwalk

DeepWalk - Deep Learning for Graphs
http://www.perozzi.net/projects/deepwalk/
Other
2.67k stars 828 forks source link

Fix from_networkx() #104

Closed kokorinosoba closed 4 years ago

kokorinosoba commented 4 years ago

nodes_iter() used in from_networkx() method of GraRep class has been outdated since Networkx v2.0. Instead, the nodes method is provided. And the nodes method is available NetworkX version 2.0 and earlier.

GTmac commented 4 years ago

Thanks for fixing this! Shall we also add the version requirement of networkx in requirements.txt?

GTmac commented 4 years ago

LGTM! Thanks again for working on this.