Updated on 2022-02-22 GMT+08:00

Louvain

Table 1 parameters parameter description

Parameter

Mandatory

Description

Type

Value Range

Default Value

convergence

No

Convergence

Double

A real number between 0 and 1 (excluding 0 and 1)

0.00001

max_iterations

No

Maximum iterations

Integer

1 to 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:

[{vertexId:communityId},...]

where

vertexId is of the string type.

communityId is of the string type.