interface SearchBellmanFordOptions {
    directed: boolean;
    root: any;
    weight?: WeightFn;
}

Properties

Properties

directed: boolean

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

root: any

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

weight?: WeightFn

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