random-graph-generator

1.1.0 • Public • Published

Random Graph Generator

A utility functon that generates a graph around supplied nodes, given parameters like maxWidth and edgeProbability. 🤞

Usage

const generateGraph = require('random-graph-generator');
 
const nodes = [
    '1',
    '2',
    '3',
    '4',
    '5'
];
 
generateGraph(nodes, { maxWidth: 2, edgeProbabilty: 0.3 });

Have fun!

Dependents (0)

Package Sidebar

Install

npm i random-graph-generator

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

6.03 kB

Total Files

7

Last publish

Collaborators

  • mykeels