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

Label Propagation

Table 1 parameters parameter description

Parameter

Mandatory

Description

Type

Value Range

Default Value

convergence

No

Convergence

Double

The value is a real number between 0 and 1.

0.00001

max_iterations

No

Maximum iterations

Integer

An integer ranging from 1 to 2147483647. For frontend calls, the range is [1,2000].

1000

initial

No

Name of the property used as the initialization label on a vertex

String

Empty or character string

  • Empty: Each vertex is allocated with a unique initialization label. This method is applicable to scenarios where no vertex label information exists.
  • Character string: The value of the property field corresponding to each vertex is used as the initialization label (the type is string, and the initialization label field is left blank for a vertex with unknown labels). This method is applicable to scenarios where some vertex labels are marked to predict unknown vertex labels.
NOTE:

If the value of initial is a character string, the number of vertices with initialization labels must be greater than 0 and less than the total number of vertices.

-

For details about algorithm iterations and convergence, see Iterations and Convergence of PageRank.

Table 2 response_data parameter description

Parameter

Type

Description

community

List

Community corresponding to each vertex. The format is as follows:

[{vertexId:communityId},...]

where

vertexId is of the string type.

communityId is of the string type.