# evented-graph

> Graph emitting mutator events

Latest version **1.0.3** (published 2015-10-21) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2015-10-21 |
| First published | 2015-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Deema Yvanow |
| Maintainers | dfcreative |
| Keywords | graph, tolstoy, evented, data-structures |

## Links

- npm: https://www.npmjs.com/package/evented-graph
- Repository: https://github.com/dfcreative/evented-graph
- Issues: https://github.com/dfcreative/evented-graph/issues
- npm.io page: https://npm.io/package/evented-graph

## Dependencies (3)

- [xtend](https://npm.io/package/xtend.md) ^4.0.0
- [tolstoy](https://npm.io/package/tolstoy.md) ^1.1.0
- [inherits](https://npm.io/package/inherits.md) ^2.0.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

- 1.0.3 (latest) — 2015-10-21
- 1.0.2 — 2015-10-21
- 1.0.1 — 2015-10-21
- 1.0.0 — 2015-10-20

## README

_Evented-graph_ is a _[Graph](https://npmjs.org/package/tolstoy)_, inherited from _EventEmitter_, which is more useful in some practical cases, comparing to the pure graph. _Evented-graph_ emits mutator events: `add`, `delete`, `clear`, `connect`, `disconnect`. It also emits `change` for every actual mutation.


## Usage

[![npm install evented-graph](https://nodei.co/npm/evented-graph.png?mini=true)](https://npmjs.org/package/evented-graph/)

```js
var Graph = require('evented-graph');

var graph = new Graph();

graph.on('add', function (node) {
	console.log('Add a new node ', node);
});

graph.add(1);
```

## Related

> [tolstoy](https://npmjs.org/package/tolstoy) — generic graph structure with ascetic API.<br/>
> [stream-graph](https://npmjs.org/package/stream-graph) — graph with nodes represented with streams and connections with pipes.<br/>
> [audio-graph](https://npmjs.org/package/audio-graph) — graph for connected pcm-streams.<br/>
> [evented-array](https://npmjs.org/package/evented-array) — Array, inherited from EventEmitter and emitting mutator events.

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