/greuler

Graph theory visualizations

Primary LanguageJavaScriptMIT LicenseMIT

greuler logo

NPM js-standard-style


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.

greuler

Installation

npm install greuler

or

<script src="https://unpkg.com/greuler"></script>

Usage

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

License

2023 MIT © Mauricio Poppe