# graph-node

> Node js library for graph

Latest version **3.0.0** (published 2017-02-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install graph-node
pnpm add graph-node
yarn add graph-node
bun add graph-node
```

## 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 | 3.0.0 |
| Published | 2017-02-26 |
| First published | 2017-02-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jonathan Natanael Siahaan |
| Maintainers | j.siahaan |
| Keywords | graph |

## Links

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

## Dependencies (1)

- [pakmanager](https://npm.io/package/pakmanager.md) ^0.12.1

## 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

- 3.0.0 (latest) — 2017-02-26
- 2.0.0 — 2017-02-26
- 1.0.0 — 2017-02-26

## README

# Graphjs

Simple library for graph.

Now only there DFS(Depth First Search) and BFS(Breadth First Search)

# Installation

npm install graph-node

# Usage

Example usage :

var graphs = require('graph-node');

var graph = new graphs.Graph(); // creates a graph

var node1=graph.addNode("A"); // creates a node

var node2=graph.addNode("B"); // creates a node

var node3=graph.addNode("C"); // creates a node

var node4=graph.addNode("D"); // creates a node

var node5=graph.addNode("E"); // creates a node

node1.addEdge(node2);       

node1.addEdge(node3);

node1.addEdge(node4);

node2.addEdge(node5);

node3.addEdge(node5);

node4.addEdge(node5);

var dfsTraversed = graphs.dfs(graph); // returns a dfs traversal of graph

var bfsTraversed = graphs.bfs(graph); // returns a bfs traversal of graph

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