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
which pagerank formula for weighted edges? #1211
Comments
Assuming the graph is strongly connected (i.e. such that it does not contain any dangling nodes), pagerank is defined as
where Does this answer your question? Or do you want to report a specific issue with the pagerank calculations? |
yes that is pretty clear, thanks a lot! I was not very aware of this definition by iteration. I mostly have seen the pagerank as the steady state vector of the transition matrix |
OK, good! Indeed, the page rank is given by the solution to the recursive equation above. |
@vtraag actually just a clarification. What happens if the graph is not strongly connected? do you drop the dangling nodes? |
No, they are not dropped. They are assumed to teleport out to the other nodes. In the current release (0.7.1) it is set to the uniform probability, but it is discussed whether that should be done by teleporting out based on the personalization vector instead. See the discussion in this issue #671. |
got it thanks. so the formula above actually works for the general case as well, right? I can see the teleport probability there |
Well, no, there are two separate teleportation probabilities: one for dangling nodes and one for the personalization. In #671 it is discussed to make them the same, but currently the teleportation probabilities are always set to uniform probabilities for dangling nodes (effectively adding a link to all other nodes for a dangling node). For more details see #671. |
i ll check it out, thanks! |
Hello @gaborcsardi
Thanks for this wonderful, fundamental R package!
I am using
igraph
viatidygraph
to compute the pagerank of nodes in my network.Unfortunately, I was not able to get the exact mathematical formula you are using to compute the
pagerank
when edges are weighted. Could you please let me know what you mean by connection strength inThanks!
The text was updated successfully, but these errors were encountered: