Skip to main content
Module

x/darango/mod.ts>Graph#shortestPath

An ArangoDB driver for Deno.
Latest
method Graph.prototype.shortestPath
import { Graph } from "https://deno.land/x/darango@0.1.6/mod.ts";

Find the shortest path between a start and end vertex node.

Parameters

startVertex: string

The vertex node to start at.

endVertex: string

The vertex node to end at.

direction: "OUTBOUND" | "INBOUND" | "ANY"

The direction to follow from the starting node.

Returns

A cursor over returned vertices.