interface SearchDijkstraOptions {
    directed?: boolean;
    root: string | CollectionArgument;
    weight?: WeightFn;
}

Properties

directed?: boolean

A boolean indicating whether the algorithm should only go along edges from source to target (default false).

root: string | CollectionArgument

The root node (selector or collection) where the algorithm starts.

weight?: WeightFn

A function that returns the positive numeric weight for this edge.

If no weight function is defined, a constant weight of 1 is used for each edge.