Preferential Attachment is a measure to compute the closeness of vertices, based on the number of their neighbors. The algorithm returns the product two vertices' number of neighbors.
For more information, see Preferential Attachment.
The product of the number of neighbors of the two vertices.
Suppose we have the following graph:
Since Dan has four neighbors, while Jenny has three, the return value of the algorithm is 3∗4=12:
Name
Description
Data type
a
A vertex.
VERTEX
b
A vertex.
VERTEX
e_type
Edge types to traverse.
SET<STRING>