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

TopicRank

Table 1 Parameter description

Parameter

Mandatory

Description

Type

Value Range

Default Value

sources

Yes

Node ID. You can specify multiple node IDs in CSV format and separate them with commas (,).

String

Currently, a maximum of 100000 IDs are allowed.

-

actived_p

No

Initial weight of the sources vertex.

Double

The value ranges from 0 to 100000.

1

default_p

No

Initial weight of a non-source vertex

Double

The value ranges from 0 to 100000.

1

filtered

No

Whether to filter results

Boolean

The value can be true or false.

false

only_neighbors

No

Whether to display only the neighboring vertices of the sources

Boolean

The value can be true or false.

false

alpha

No

Weight coefficient

String

The value is a real number between 0 and 1.

0.85

convergence

No

Convergence

String

The value is a real number between 0 and 1.

0.00001

max_iterations

No

Maximum iterations

Integer

The value ranges from 1 to 2000.

1000

directed

No

Whether the edges are directed

Boolean

The value can be true or false.

true

num_thread

No

Number of threads

Integer

The value ranges from 1 to 40.

4

Table 2 response_data parameter description

Parameter

Type

Description

topicrank

List

TopicRank value of each vertex. The format is as follows:

[{vertexId:rankValue},...],

where

vertexId is of the string type.

rankValue is of the double type.