# connectedComponents

Get connected components (undirected only).

## Signatures

```ts
export declare const connectedComponents: <N, E, Err, R>(ref: RefGraph<N, E, "undirected", Err, R>) => RefSubject.Computed<Array<Array<Graph.NodeIndex>>, Err, R>;
```

## Why

Get connected components (undirected only). The operation remains attached to the RefSubject's
versioned state boundary.

## Ownership and lifetime

The connected components view retains no independent state. An Effect read samples the source
once; Fx observation follows later pushes and its observing Scope owns subscription cleanup.
