# jsgraphlib

> Javascript Graph Library, create graph structure and run graph algorithms

Latest version **0.0.1** (published 2020-05-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install jsgraphlib
pnpm add jsgraphlib
yarn add jsgraphlib
bun add jsgraphlib
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-05-23 |
| First published | 2020-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Cristobal Miranda Torres |
| Maintainers | cristobalm |

## Links

- npm: https://www.npmjs.com/package/jsgraphlib
- npm.io page: https://npm.io/package/jsgraphlib

## Recent versions

- 0.0.1 (latest) — 2020-05-23

## README

<!--
 Copyright (c) 2020 Cristobal Miranda T.
 
 This software is released under the MIT License.
 https://opensource.org/licenses/MIT
-->

# Javascript Graph Library

## Current features:

* Directed Graph

```
import { DirectedGraph } from 'jsgraphlib'

const dg = new DirectedGraph();

const node1 = {name: "node 1"};
const node2 = {name: "node 2"};
const edge12 = {first_node: node1, second_node: node2};

dg.add_node(node1);
dg.add_node(node2);
dg.add_edge(edge12);

console.log(dg.has_node(node1));
console.log(dg.has_node(node2));
console.log(dg.has_edge(edge12));

```

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