effect-io-ai

Package: effect
Module: Graph

Graph.AllPairsResult

Result of all-pairs shortest path computation.

Signature

export interface AllPairsResult<E> {
  readonly distances: Map<NodeIndex, Map<NodeIndex, number>>
  readonly paths: Map<NodeIndex, Map<NodeIndex, Array<NodeIndex> | null>>
  readonly costs: Map<NodeIndex, Map<NodeIndex, Array<E>>>
}

Source

Since v3.18.0