/random-graph

generate random graphs

Primary LanguageJavaScriptMIT LicenseMIT

random-graph

generate random graphs

install

npm i random-graph

usage

const randomGraph = require('random-graph')

// generate a tree with 10 nodes
const tree = randomGraph.randomTree({
    size: 10
})