tarjan-scc
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Tarjan-SCC

Install:

npm install --save tarjan-scc

Usage:

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
  2. git commit -am "release x.x.x"
  3. git push origin main
  4. git tag vx.x.x
  5. git push origin vx.x.x
  6. npm run compile
  7. npm publish ./

Readme

Keywords

Package Sidebar

Install

npm i tarjan-scc

Weekly Downloads

28

Version

0.2.0

License

MIT

Unpacked Size

14.9 kB

Total Files

10

Last publish

Collaborators

  • pmeijer