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
- Host: GitHub
- URL: https://github.com/zhanba/graph-lib
- Owner: zhanba
- License: mit
- Created: 2017-11-23T12:58:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-25T03:30:14.000Z (over 1 year ago)
- Last Synced: 2025-02-25T04:28:14.034Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 222 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# graph-tools
Based on [graphlib](https://github.com/dagrejs/graphlib), written in TypeScript.
[](https://badge.fury.io/js/graph-tools)
[](https://travis-ci.org/zhanba/graph-lib)
[](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