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

All Shortest Paths of Vertex Sets

Table 1 Parameter description

Parameter

Mandatory

Description

Type

Value Range

Default Value

sources

Yes

Source vertex ID set

String

The value is in the standard CSV format. IDs are separated by commas (,), for example, Alice, Nana.

The maximum ID number is 100000.

-

targets

Yes

Target vertex ID set

String

The value is in the standard CSV format. IDs are separated by commas (,), for example, Alice, Nana.

The maximum ID number is 100000.

-

directed

No

Whether to consider the edge direction

Boolean

true or false. It is a Boolean value.

false

Table 2 response_data parameter description

Parameter

Type

Description

paths

List

All shortest paths between the source vertex and target vertex. The format is as follows:

[[path1],[path2]]

source

String

Source ID of a path

target

String

Target ID of a path