A library that computes personalised pagerank vector via power iteration.
npm install personalized-pagerank-js
var ppr = require('personalized-pagerank-js');
var scores = ppr(adjacencyList, personalised, damping, maxIteration, threshold);
Output should be pagerank score of all nodes.
npm test
-
Support edge list input.
-
Support more pagerank algorithms.
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.