> ## Documentation Index
> Fetch the complete documentation index at: https://resq-dependabot-github-actions-github-actions-478e18be3d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# TraversalResult

# Interface: TraversalResult\<T>

Defined in: [graph.ts:69](https://github.com/resq-software/npm/blob/fe2e20ae9db8398a0db1e3218edaabb3cf7004d6/packages/dsa/src/graph.ts#L69)

Graph traversal result

## Type Parameters

### T

`T`

## Properties

### distances

> **distances**: `Map`\<`T`, `number`>

Defined in: [graph.ts:75](https://github.com/resq-software/npm/blob/fe2e20ae9db8398a0db1e3218edaabb3cf7004d6/packages/dsa/src/graph.ts#L75)

Distance from source (for BFS)

***

### parents

> **parents**: `Map`\<`T`, `T` | `null`>

Defined in: [graph.ts:73](https://github.com/resq-software/npm/blob/fe2e20ae9db8398a0db1e3218edaabb3cf7004d6/packages/dsa/src/graph.ts#L73)

Parent map for path reconstruction

***

### vertices

> **vertices**: `T`\[]

Defined in: [graph.ts:71](https://github.com/resq-software/npm/blob/fe2e20ae9db8398a0db1e3218edaabb3cf7004d6/packages/dsa/src/graph.ts#L71)

Vertices in traversal order
