aditya-grover / node2vec

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

Q: is it possibly to use the algorithm on a set of non-connected graphs #93

Open margokhokhlova opened 4 years ago

margokhokhlova commented 4 years ago

Hello! I want to try to apply the algorithm on a set of graphs, and I don't want to introduce extra links to connected the data. I would be really grateful if you can share your opinion, whether I can calculate the walks on all the separate graphs and then train the model on them. Thank you very much in advance.

H-Yin commented 4 years ago

From the code in lines 50~51 of src/node2vec.py , we can get a message that all nodes or sub-graphs will be trained with this model. So, you don't need to worry about it. Just run it!