mauriciopoppe / greuler

Graph theory visualizations

Home Page:http://mauriciopoppe.github.io/greuler/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

greuler logo 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.

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

About

Graph theory visualizations

http://mauriciopoppe.github.io/greuler/

License:MIT License


Languages

Language:JavaScript 87.1%Language:Pug 8.0%Language:SCSS 3.6%Language:HTML 1.3%