# DijkstraResult

Defined in: [packages/graph/src/dijkstra.ts:52](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/graph/src/dijkstra.ts#L52)

A shortest-path search’s answer, as arrays indexed by vertex.

## Properties

### distance

> `readonly` **distance**: `Float64Array`

Defined in: [packages/graph/src/dijkstra.ts:54](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/graph/src/dijkstra.ts#L54)

The least total cost from the nearest source, or `Infinity` when unreached.

***

### parent

> `readonly` **parent**: `Int32Array`

Defined in: [packages/graph/src/dijkstra.ts:56](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/graph/src/dijkstra.ts#L56)

The vertex each one was reached from on a cheapest path, or `-1` for a source and for an unreached vertex.
