0

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.

Nelly Barret
  • 144
  • 1
  • 17

1 Answers1

0

I managed to do what I want by downloading the code base and changing the adjacency matrix as needed.

I'm closing my post.

Nelly Barret
  • 144
  • 1
  • 17
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 13 '22 at 07:14