Common Neighbors (Beta)
The Common Neighbors algorithm calculates the number of common neighbors between two vertices.
Specification
Parameters
Name | Description | Data type |
| A vertex. |
|
| A vertex. |
|
| Edge types to traverse. |
|
Return value
The number of common neighbors between two vertices.
Example
Suppose to have the following graph:
Running the algorithm between Dan and Jenny will show that they have 1 common neighbor:
Last updated