Updated on 2024-01-04 GMT+08:00

Common Neighbors of Vertex Sets

Table 1 parameters parameter description

Parameter

Mandatory

Description

Type

Value Range

Default Value

sources (2.2.6)

Yes

Source vertex ID set

String

The value is in the standard CSV format. IDs are separated by commas (,), for example, Alice, Nana.

The maximum ID number is 100000.

-

targets (2.2.6)

Yes

Target vertex ID set

String

The value is in the standard CSV format. IDs are separated by commas (,), for example, Mike,Amy.

The maximum ID number is 100000.

-

restricted (2.2.13)

No

Whether other constraints are included

Boolean

true or false

  • false: There is no additional constraint. The found common neighbors are the intersection of the neighborhoods corresponding to the source vertex set and target vertex set.
  • true: There are additional constraints. The found common neighbors are not only the intersection of the neighborhoods corresponding to the source vertex set and target vertex set, but each vertex in the common neighbor set has at least two neighboring vertices in the source vertex set and target vertex set.

true

Table 2 response_data parameter description

Parameter

Type

Description

vertices

List

Common neighbor vertices. The format is as follows:

[vertexId,...],

where

vertexId is of the string type.

common_neighbors

Integer

Number of common neighbors