# @devneko/graph-ts

> in-memory graph database written in typescript.

Latest version **0.1.8** (published 2022-12-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @devneko/graph-ts
pnpm add @devneko/graph-ts
yarn add @devneko/graph-ts
bun add @devneko/graph-ts
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2022-12-19 |
| First published | 2022-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16 |
| Dependencies | 1 |
| Unpacked size | 153.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | devneko |

## Links

- npm: https://www.npmjs.com/package/@devneko/graph-ts
- Repository: https://github.com/dotneet/graph-ts
- Homepage: https://github.com/dotneet/graph-ts#readme
- Issues: https://github.com/dotneet/graph-ts/issues
- npm.io page: https://npm.io/package/@devneko/graph-ts

## Dependencies (1)

- [uuid](https://npm.io/package/uuid.md) ^9.0.0

## Recent versions

- 0.1.8 (latest) — 2022-12-19
- 0.1.7 — 2022-12-18
- 0.1.6 — 2022-12-18
- 0.1.5 — 2022-12-18
- 0.1.4 — 2022-12-18
- 0.1.2 — 2022-12-17
- 0.1.1 — 2022-12-17
- 0.1.0 — 2022-12-17

## README

# graph-ts

in-memory graph database written in typescript.

## Features

- Basic graph structure inspired by Gremlin.
- Gremlin like graph traversal.
- Topological Sort
- Decomposition of SCC

## Example

```ts
const g: Graph = new Graph();
const v1 = g.addVertex('people', {
  name: 'Bob',
});
const v2 = g.addVertex('people', {
  name: 'Alice',
});
const v3 = g.addVertex('item', {
  name: 'Pencil',
});
g.addEdge('knows', v1, v2);
g.addEdge('has', v1, v3);

// returns vertices that have 'people' label.
g.V().hasLabel('people').toArray();
// returns the item that Bob has.
g.V(v1).out('has').toArray();
```

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