A library for network visualization and algorithm simulation.
npm install algorithmx!build


AlgorithmX is an event-driven network visualization library, built on top of href="https://github.com/d3/d3">D3 and WebCola.
It can be used to create interactive networks and animated algorithm simulations.
- Website
- Documentation
- Python version
Browser
``html`
This will expose a global algorithmx variable.
Module
Run npm install algorithmx. AlgorithmX is written in href="https://www.typescriptlang.org/">TypeScript, and comes with complete type definitions.
To import the library in in a TypeScript or ES6 JavaScript project:
`js`
import { createCanvas } from 'algorithmx';
`js
// select a div with id 'output' for rendering the network
const canvas = createCanvas('output');
// add three blue nodes
canvas.nodes(['A', 'B', 'C']).add().color('blue');
// add an edge
canvas.edge(['A', 'C']).add();
// pause for half a second
canvas.pause(0.5);
// temporarily make node 'B' 1.5 times as large
canvas.node('B').highlight().size('1.5x');
``