@graphty/algorithms / index / topPageRankNodes
Function: topPageRankNodes() ​
topPageRankNodes(
graph,k,options):object[]
Defined in: algorithms/centrality/pagerank.ts:344
Get the top-k nodes by PageRank score
Parameters ​
graph ​
The directed input graph to analyze
k ​
number
Number of top nodes to return
options ​
PageRankOptions = {}
Algorithm configuration options
Returns ​
object[]
Array of top-k nodes with their PageRank scores, sorted descending