Resource Allocation (Beta)
Resource Allocation is used to compute the closeness of nodes based on their shared neighbors. It is computed by the following formula:
Where 𝑁(𝑢) is the set of nodes adjacent to u.
Specification
Parameters
Name | Description | Data type |
| A vertex. |
|
| A vertex. |
|
| Edge types to traverse. |
|
Example
Suppose we have the following graph:
Since Dan and Jenny has one shared neighbor Tom
, who has two neighbors, running the algorithm between Dan and Jenny with friendship edges would give us a result of 0.5.
Last updated