@graphty/algorithms / index / compareAdamicAdarWithCommonNeighbors
Function: compareAdamicAdarWithCommonNeighbors() ​
compareAdamicAdarWithCommonNeighbors(
graph,testEdges,nonEdges,options):object
Defined in: link-prediction/adamic-adar.ts:269
Compare Adamic-Adar with Common Neighbors for the same dataset
Parameters ​
graph ​
The input graph
testEdges ​
Array of node pairs that are actual edges
nonEdges ​
Array of node pairs that are not edges
options ​
Link prediction options
Returns ​
object
Comparison of evaluation metrics for both algorithms
adamicAdar ​
adamicAdar:
object
adamicAdar.auc ​
auc:
number
adamicAdar.f1Score ​
f1Score:
number
adamicAdar.precision ​
precision:
number
adamicAdar.recall ​
recall:
number
commonNeighbors ​
commonNeighbors:
object
commonNeighbors.auc ​
auc:
number
commonNeighbors.f1Score ​
f1Score:
number
commonNeighbors.precision ​
precision:
number
commonNeighbors.recall ​
recall:
number