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

Louvain

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].

100

weight

No

Weight of an edge

String

Empty or null character string

  • Empty: The default weight and distance of edges are 1.
  • Character string: The property of the corresponding edge is the weight. If the edge does not have a property, the weight is 1 by default.
NOTE:

The weight of an edge must be greater than 0.

weight

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

Table 2 response_data parameter description

Parameter

Type

Description

modularity

Double

Modularity

community_num

Integer

Number of communities

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.