Skip to content

@graphty/algorithms / index / adamicAdarScore

Function: adamicAdarScore() ​

adamicAdarScore(graph, source, target, options): number

Defined in: link-prediction/adamic-adar.ts:28

Calculate Adamic-Adar index for a pair of nodes

Parameters ​

graph ​

Graph

The input graph

source ​

NodeId

The source node ID

target ​

NodeId

The target node ID

options ​

LinkPredictionOptions = {}

Link prediction options

Returns ​

number

The Adamic-Adar score for the node pair