最短経路の取得
Find all shortest paths between two nodes using KuzuDB ALL SHORTEST.
Note: KuzuDB does not support parameter binding in recursive relationship bounds, so max_depth is interpolated as a validated literal (ge=2, le=20).
Returns all shortest paths (same hop count, different routes) so the frontend can render every connection between the two nodes. The overview graph may not contain all intermediate nodes, so paths are drawn between visible positions.
クエリパラメータ
from_id*From Id
Source node ID
to_id*To Id
Target node ID
max_depth?Max Depth
Range
2 <= value <= 20Default
10レスポンスボディ
application/json
application/json
curl -X GET "https://example.com/graph/shortest-path?from_id=string&to_id=string"null