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.
npm install greuler
or
<script src="https://unpkg.com/greuler"></script>
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()
Check out the examples and API at the homepage
2023 MIT © Mauricio Poppe