Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph root is always 0 #88

Open
SDritsa opened this issue Feb 5, 2020 · 1 comment
Open

graph root is always 0 #88

SDritsa opened this issue Feb 5, 2020 · 1 comment

Comments

@SDritsa
Copy link

SDritsa commented Feb 5, 2020

Hi,

we've been running node2vec and noticed that if a graph does not have a node 0, random walks that have no other neighbour give a vector that is filled up with 0s for the remaining steps of the walk.

We saw that this is because the random walk breaks with no other neighbours and 0 is considered the root node.

In a non-singularly rooted graph, if we wanted to consider as roots all seed nodes (each one in its own random walk), wouldn't that be a more faithful representation of the graph ? Since if there is no 0 node, a node is added, and if there is a 0 node in the network then walks are randomly returning to it, biasing the embeddings from word2vec ?

Thanks in advance if you have an answer and/or have already tried it!

@sunshinelala1991
Copy link

Hi I am also faced with this issue. I did not assign a 0 node in my graph, but the output embedding has a 0 node in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants