effect-io-ai

Package: effect
Module: Graph

Graph.PathResult

Result of a shortest path computation containing the path and total distance.

Signature

export interface PathResult<E> {
  readonly path: Array<NodeIndex>
  readonly distance: number
  readonly costs: Array<E>
}

Source

Since v3.18.0