@graphty/algorithms / index / adamicAdarScore
Function: adamicAdarScore() ​
adamicAdarScore(
s,uNode,vNode,o?):number
Defined in: indexed/link-prediction.ts:360
The Adamic-Adar index of two nodes: the sum over distinct common neighbours z of 1 / ln(degree(z)).
Parameters ​
s ​
GraphSnapshot
The snapshot
uNode ​
NodeRef
A node: its index, or { id }
vNode ​
NodeRef
A node: its index, or { id }
o? ​
Options
Returns ​
number
The score