# tarjan-scc

> tarjan's algoirthm for finding strongly connected components

Latest version **0.2.0** (published 2023-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install tarjan-scc
pnpm add tarjan-scc
yarn add tarjan-scc
bun add tarjan-scc
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2023-10-03 |
| First published | 2023-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | http://github.com/pmeijer |
| Maintainers | pmeijer |
| Keywords | tarjan, graphs, scc |

## Links

- npm: https://www.npmjs.com/package/tarjan-scc
- Repository: https://github.com/pmeijer/tarjan-scc
- Homepage: https://github.com/pmeijer/tarjan-scc#readme
- Issues: https://github.com/pmeijer/tarjan-scc/issues
- npm.io page: https://npm.io/package/tarjan-scc

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.2.0 (latest) — 2023-10-03
- 0.1.0 — 2023-10-02
- 0.0.2 — 2023-10-02

## README

# Tarjan-SCC

Install:
```bash
npm install --save tarjan-scc
```

Usage:
```typescript
import { Tarjan } from 'tarjan-scc';

const t = new Tarjan();

// Add verticies.
t.addVertex(1);
t.addVertex(2);
t.addVertex(3);
t.addVertex(4);

// Connect vertices.
t.connectVertices(1, 2);
t.connectVertices(2, 3);
t.connectVertices(3, 4);
t.connectVertices(4, 2);

// Check for loops.
t.hasLoops(); // true
```

### Publish a Release

1. Update to a new version (`x.x.x`) in `package.json`
1. `git commit -am "release x.x.x"`
1. `git push origin main`
1. `git tag vx.x.x`
1. `git push origin vx.x.x`
1. `npm run compile`
1. `npm publish ./`

---
_Source: https://npm.io/package/tarjan-scc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
