Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

randomgraph.js

Simple library for generating random graphs

Subscribe to updates I use randomgraph.js


Statistics on randomgraph.js

Number of watchers on Github 30
Number of open issues 1
Main language JavaScript
Average time to merge a PR 17 days
Open pull requests 0+
Closed pull requests 0+
Last commit over 4 years ago
Repo Created about 6 years ago
Repo Last Updated over 1 year ago
Size 193 KB
Homepage http://jsfiddle.n...
Organization / Authorgka
Contributors2
Page Updated
Do you use randomgraph.js? Leave a review!
View randomgraph.js activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating randomgraph.js for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

randomgraph.js

A small library for generating, well, random graphs. Not that many models at the moment, feel free to jump in and add some more. The algorithms were partly ported and double-checked with the Gephi implementations (thx @jacomyal for the link).

preview

Documentation

Members

randomgraph.BalancedTree(r, h)

Simple balanced tree

Params

  • r Number - number of children each node has
  • h Number - height of the tree

randomgraph.BarabasiAlbert(N, m0, M)

BarabsiAlbert

Params

  • N Number - total number of nodes N > 0
  • m0 Number - m0 > 0 && m0 < N
  • M Number - M > 0 && M <= m0

randomgraph.ErdosRenyi

Members

ErdosRenyi.np(n, p)

ErdsRnyi aka Gilbert

Params

  • n Number - number of nodes
  • p Number - probability of a edge between any two nodes

ErdosRenyi.nm(n, M)

ErdsRnyi

Params

  • n Number - number of nodes
  • M Number - number of edges

randomgraph.WattsStrogatz

Members

WattsStrogatz.alpha(n, K, alpha)

Watts-Strogatz Small World model Alpha

Params

  • n Number - number of nodes
  • K Number - mean degree (even integer)
  • alpha Number - rewiring probability [0..1]

WattsStrogatz.beta(n, K, beta)

Watts-Strogatz Small World model Beta

Params

  • n Number - number of nodes
  • K Number - mean degree (even integer)
  • beta Number - rewiring probability [0..1]
randomgraph.js list of languages used
Other projects in JavaScript