Skip to content

@graphty/algorithms / index / commonNeighborsForPairs

Function: commonNeighborsForPairs() ​

commonNeighborsForPairs(s, pairs, o?): F64

Defined in: indexed/link-prediction.ts:311

Common-neighbour scores of the given pairs, in order.

Parameters ​

s ​

GraphSnapshot

The snapshot

pairs ​

NodePairs

The pairs

o? ​

CommonNeighborsOptions = {}

Options

Returns ​

F64

One score per pair