@gogrillion/gl-graph
v1.0.7
Published
Graph visualization tools for modern web browsers.
Downloads
2
Readme
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