I have a question regarding the implementation of PageRank in Java using the jGraphT library.
I need to personalize the initial scores that PageRank gives to nodes. Instead of the usual 1/n, I need to use other values. These values will still make the adjacency matrix stochastic (i.e. a row sums up to 1), so that there is no problem with the convergence criterion.
In the docs of jGraphT, I see that there are only two methods in the PageRank class, namely getScores
and getVertexScore
. Is there a way to personalize PageRank initial scores or import the adjancency matrix that PageRank will use?
I found their code base on Github, so I can still download it and change the code by myslef ; but if I can find a nicer way to do it, it would be better.