Preferential Attachment (Beta)
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.
Specification
Parameters
Name | Description | Data type |
| A vertex. |
|
| A vertex. |
|
| Edge types to traverse. |
|
Return value
The product of the number of neighbors of the two vertices.
Example
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:
Last updated