Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mauriciopoppe/greuler
Graph theory visualizations
https://github.com/mauriciopoppe/greuler
edges graph graph-theory graph-traversal network nodes vertices
Last synced: 1 day ago
JSON representation
Graph theory visualizations
- Host: GitHub
- URL: https://github.com/mauriciopoppe/greuler
- Owner: mauriciopoppe
- License: mit
- Created: 2015-07-15T22:55:47.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T00:17:12.000Z (4 months ago)
- Last Synced: 2025-01-03T09:04:22.433Z (9 days ago)
- Topics: edges, graph, graph-theory, graph-traversal, network, nodes, vertices
- Language: JavaScript
- Homepage: http://mauriciopoppe.github.io/greuler/
- Size: 5.95 MB
- Stars: 649
- Watchers: 21
- Forks: 27
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - mauriciopoppe/greuler - Graph theory visualizations (others)
README
---
greuler is graph theory visualization tool powered by d3
and on top of WebCola
which allows the creation and manipulation of graphs with a simple API.
## Installation
```sh
npm install greuler
```or
```html
```
## Usage
```js
import greuler from 'greuler'
greuler({
nodes: [
{ id: 0 },
{ id: 1 },
{ id: 2 },
{ id: 3 },
{ id: 4 },
{ id: 5 }
],
edges: [
{ source: 0, target: 1 },
{ source: 0, target: 2, directed: true },
{ source: 0, target: 3 },
{ source: 1, target: 2, directed: true },
{ source: 4, target: 0 },
{ source: 5, target: 0, directed: true },
{ source: 4, target: 5 }
]
}).update()
```## API and Examples
Check out the examples and API at the [`homepage`](http://mauriciopoppe.github.io/greuler/)
## License
2023 MIT © Mauricio Poppe
[npm-image]: https://img.shields.io/npm/v/greuler.svg?style=flat
[npm-url]: https://npmjs.org/package/greuler