# selectBranch

Package: `@threadplane/langgraph` · 0.3.7

Reference: /docs/api/langgraph/selectBranch

```typescript
import { selectBranch } from '@threadplane/langgraph';
```

## selectBranch · overload 1

The checkpoints a branch shows, oldest first. `branch` is the fork choices
joined with `>`, as in a node's `path`. At a fork the branch does not name,
the newest continuation is followed.

```typescript
export declare function selectBranch(tree: LangGraphBranchTree, branch?: string): readonly LangGraphCheckpoint[];
```