# ConnectedComponentsResult

Defined in: [packages/graph/src/connected-components.ts:6](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/graph/src/connected-components.ts#L6)

Which component each vertex belongs to, and how many components there are.

## Properties

### count

> `readonly` **count**: `number`

Defined in: [packages/graph/src/connected-components.ts:8](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/graph/src/connected-components.ts#L8)

Number of components; an isolated vertex is a component of its own.

***

### component

> `readonly` **component**: `Int32Array`

Defined in: [packages/graph/src/connected-components.ts:10](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/graph/src/connected-components.ts#L10)

The component label of each vertex, in `0 … count - 1`, numbered in order of each component’s smallest vertex.
