Adamic Adair
The Adamic/Adar index is a measure introduced in 2003 by Lada Adamic and Eytan Adar to predict links in a social network, according to the number of shared links between two nodes. It is defined as the sum of the inverse logarithmic degree centrality of the neighbors shared by the two nodes.
\[{A(x,y)=\sum _{u\in N(x)\cap N(y)}{\frac {1}{\log {N(u)}}}}\]
Where \({N(u)}\) is the set of nodes adjacent to u.
Parameters
Name  Description  Data type 


A vertex. 


A vertex. 


Edge types to traverse. 

Return value
The Adamic Adar index between two vertices. If the two vertices do not have common neighbors, the algorithm will return a division by 0 error.