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

Node2vec

Table 1 parameters parameter description

Parameter

Mandatory

Description

Type

Value Range

Default Value

P

No

Rollback parameter

Double

Greater than 0

1

Q

No

Forward parameter

Double

Greater than 0

1

dim

No

Mapping dimension

Integer

An integer between 1 and 200 (including 1 and 200)

50

walkLength

No

Random walk length

Integer

An integer between 1 and 100 (including 1 and 100)

40

walkNumber

No

Number of random walk steps of each vertex.

Integer

An integer between 1 and 100 (including 1 and 100)

10

iterations

No

Number of iterations

Integer

An integer between 1 and 100 (including 1 and 100)

10

Table 2 response_data parameter description

Parameter

Type

Description

embedding

List

Vector representation of each vertex mapped to the Euclidean space. The format is as follows:

[{vertexId:vectorValue}]

where

vertexId is of the string type.

vectorValue: is a euclidean vector, for example, [-0.485, -0.679, 0.356].