# @pnpm/deps.graph-sequencer

> Sort items in a graph using a topological sort

Latest version **1101.0.0** (published 2026-08-29) · MIT license · 13.4K weekly downloads

## Install

```sh
npm install @pnpm/deps.graph-sequencer
pnpm add @pnpm/deps.graph-sequencer
yarn add @pnpm/deps.graph-sequencer
bun add @pnpm/deps.graph-sequencer
```

## Health

**Score 90/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo.

## Facts

| | |
|---|---|
| Version | 1101.0.0 |
| Published | 2026-08-29 |
| First published | 2023-10-15 |
| Weekly downloads | 13.4K |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.13 |
| Dependencies | 0 |
| Unpacked size | 14.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 36515 |
| Maintainers | pnpmuser, zkochan |
| Keywords | pnpm, pnpm11, graph |

## Links

- npm: https://www.npmjs.com/package/@pnpm/deps.graph-sequencer
- Repository: https://github.com/pnpm/pnpm/tree/main/pnpm11/deps/graph-sequencer
- Homepage: https://github.com/pnpm/pnpm/tree/main/pnpm11/deps/graph-sequencer#readme
- Issues: https://github.com/pnpm/pnpm/issues
- Funding: https://opencollective.com/pnpm
- npm.io page: https://npm.io/package/@pnpm/deps.graph-sequencer

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@urql/exchange-execute](https://npm.io/package/@urql/exchange-execute.md) — 10.9K weekly downloads

## Recent versions

- 1101.0.0 (latest) — 2026-08-29
- 1100.0.1 — 2026-07-23
- 1100.0.0 — 2026-04-10
- 1000.0.0 — 2024-11-29
- 900.0.0 — 2024-11-28
- 2.0.1 — 2024-05-06
- 2.0.0 — 2024-04-09
- 1.0.0 — 2023-10-15

## README

# @pnpm/deps.graph-sequencer

> Sort items in a graph using a topological sort

## Install

```
pnpm add @pnpm/deps.graph-sequencer
```

## Usage

```ts
  expect(graphSequencer(new Map([
    [0, [1]],
    [1, [2]],
    [2, [3]],
    [3, [0]],
  ]), [0, 1, 2, 3])).toStrictEqual(
    {
      order: [0, 1, 2, 3],
      cycles: [[0, 1, 2, 3]],
    }
  )
```

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/@pnpm/deps.graph-sequencer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
