@gogrillion/gl-graph
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

gl-graph

gl-graph is a WebGL powered network graph visualization for large data sets.

Features

  • Swappable layout engines from various other graph tools.
  • WASD camera control
  • Node events ( eg. nodeclick, nodehover, etc. )
  • Supports large data sets ( 10,000 and 20,000 links - see 100x100 grid example )
  • Edge directionality

Requirements

  • npm
  • A web browser with WebGL 1.0 support.

Run the demo

npm install
npm run demo

Usage

A data store is needed. An ephemeral in-memory only implementation MemoryGraph is provided.

let graph = new MemoryGraph();

Populate the graph using a graph generator or your own data. See src/generator for more topologies.

RandomTree(graph);   // Generate a random tree-like structure with default options

Create the viewport

let viewport = new Viewport(window.document.getElementById('center'), graph);

License

Copyright (C) 2018 GoGrillion

gl-graph is licensed under the ISC License

Readme

Keywords

none

Package Sidebar

Install

npm i @gogrillion/gl-graph

Weekly Downloads

1

Version

1.0.7

License

ISC

Unpacked Size

254 kB

Total Files

153

Last publish

Collaborators

  • gogrillion