# thegraph.io

> A simple, minimal, no nonsense graph library with shortest-path finding.

Latest version **1.0.1** (published 2018-09-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install thegraph.io
pnpm add thegraph.io
yarn add thegraph.io
bun add thegraph.io
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-09-27 |
| First published | 2018-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aaron Baw |
| Maintainers | vizcosity |
| Keywords | graph, node, edges, dag, disjkra |

## Links

- npm: https://www.npmjs.com/package/thegraph.io
- Repository: https://github.com/Vizcosity/theGraph
- Homepage: https://github.com/Vizcosity/theGraph#readme
- Issues: https://github.com/Vizcosity/theGraph/issues
- npm.io page: https://npm.io/package/thegraph.io

## 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
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-09-27
- 1.0.0 — 2018-09-27

## README

<p align="center">
<img height="200px" align="center" src="https://i.imgur.com/9vwD10z.png" />
</p>

<h1 style="border-bottom: none:" align="center">theGraph.io</h1>

<p align="center">A simple, minimalistic, no-nonsense graph library for Node.js.</p>



### Installation
```JavaScript
  npm install thegraph.io
```

### Usage

```JavaScript
const Graph = require('thegraph.io');
var graph = new Graph();

// Add vertices.
graph.addVertices(['a', 'b', 'c', 'd']);

// Add vertices with associated objects.
graph.addVertex('f', {type: 'Character'});

// Add edges between nodes.
graph.addEdge('a', 'b');

// Edges an have associated objects (e.g. weight)
graph.addEdge('b', 'c', {weight: 20});

graph.addEdge('c', 'd', {relationship: 'Consecutive'});

// Find shortest path between nodes.
var path = graph.getShortestPath('a', 'd');
```
<p align="center"><sub><strong>Made with ❤️ & ☕️ from 🇬🇮</strong></sub></p>

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