An open API service indexing awesome lists of open source software.

https://github.com/zhanba/graph-lib

a graph lib in typescript
https://github.com/zhanba/graph-lib

Last synced: 3 months ago
JSON representation

a graph lib in typescript

Awesome Lists containing this project

README

          

# graph-tools

Based on [graphlib](https://github.com/dagrejs/graphlib), written in TypeScript.

[![npm version](https://badge.fury.io/js/graph-tools.svg)](https://badge.fury.io/js/graph-tools)
[![Build Status](https://travis-ci.org/zhanba/graph-lib.svg?branch=master)](https://travis-ci.org/zhanba/graph-lib)
[![Coverage Status](https://coveralls.io/repos/github/zhanba/graph-lib/badge.svg?branch=master)](https://coveralls.io/github/zhanba/graph-lib?branch=master)
## Usage

```bash
npm install graph-tools
```

```js
const { Graph, json, alg } = require('graph-tools')

const g = new Graph()

g.setNode('a')
```

## TODO

- add benchmark
- add doc