Skip to content

@graphty/algorithms / index / commonNeighborsScore

Function: commonNeighborsScore() ​

commonNeighborsScore(s, u, v, o?): number

Defined in: indexed/common-neighbors.ts:61

The number of distinct common neighbours of two nodes, by a merge of their sorted rows.

Parameters ​

s ​

GraphSnapshot

The snapshot

u ​

number

A node index

v ​

number

A node index

o? ​

CommonNeighborsOptions = {}

Options

Returns ​

number

The count of distinct common neighbours