Skip to content

A utility functon that generates a graph around supplied nodes

License

Notifications You must be signed in to change notification settings

mykeels/random-graph-generator

Repository files navigation

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!

About

A utility functon that generates a graph around supplied nodes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published