Updated on 2023-07-19 GMT+08:00

All Shortest Paths (1.0.12)

Table 1 parameters parameter description

Parameter

Mandatory

Description

Type

Value Range

Default Value

source

Yes

Source vertex ID of a path

String

-

-

target

Yes

Target vertex ID of a path

String

-

-

directed

No

Whether to consider the edge direction

Boolean

true or false

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

For the format of path, see Shortest Path.

paths_number

Integer

Number of paths

source

String

Source vertex ID

target

String

Target vertex ID