Shortest Path
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
source |
Yes |
String |
Source vertex ID of a path |
target |
Yes |
String |
Target vertex ID of a path |
directed |
No |
Boolean |
Whether to consider the edge direction. The value is true. |
timeWindow |
No |
Object |
Time window for time filtering. For details, see Table 2.
NOTE:
timeWindow does not support the shortest path with weight. That is, parameters timeWindow and weight cannot be both specified. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
filterName |
Yes |
String |
Character string: The property on the corresponding vertex/edge is used as the time. |
filterType |
No |
String |
Filters vertices or edges. The default value is BOTH.
|
startTime |
No |
String |
Start time, which is a string of the date type or a timestamp. |
endTime |
No |
String |
End time, which is a string of the date type or a timestamp. |
Parameter |
Type |
Description |
---|---|---|
path |
List |
Shortest path. The format is as follows: [vertexId,...] where vertexId is of the string type. |
source |
String |
Source vertex ID |
target |
String |
Target vertex ID |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.