Skip to content

@eightkk/vue-weave / core / ShortestGraphPathOptions

Interface: ShortestGraphPathOptions ​

Defined in: src/core/graphAlgorithms.ts:54

Properties ​

directed? ​

optional directed?: boolean

Defined in: src/core/graphAlgorithms.ts:56

Default true follows edge direction only; false lets edges be walked in both directions.


weight? ​

optional weight?: (edge) => number

Defined in: src/core/graphAlgorithms.ts:58

Edge cost; must be finite and nonnegative. Without it every edge costs 1 (breadth-first search).

Parameters ​

edge ​

GraphEdge

Returns ​

number

Released under the MIT License.