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

Edge weights versus transition probabilities #13

Open
akalino opened this issue Jan 29, 2021 · 1 comment
Open

Edge weights versus transition probabilities #13

akalino opened this issue Jan 29, 2021 · 1 comment

Comments

@akalino
Copy link

akalino commented Jan 29, 2021

I have a question when doing biased truncated random walks: if I have an edge file that has probabilities rather than edge weights (floats over integers), does this change how the biased_walk example works? I am specifying that my walk lengths should be ~100, yet the output file contains many shorter walks.

@ykwd
Copy link
Collaborator

ykwd commented Feb 1, 2021

The default type of edge weight is float. So this should not be the problem. Could it be that some of the vertices in your graph don't have any outgoing edges? When a walker walks into such vertices, it'll stop walk as it has nowhere to go.

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