Skip to main content

Networks

Generate networks from a Erdős-Rényi model.

Options

  • maxNumNodes | number: maximum number of nodes that can be selected for the network. Default: 30.
  • showEdgeChart | boolean: controls whether to display a chart displaying the number of edges in each generated network (reset when number of nodes is changed). Default: false.
  • showTransitivities | boolean: whether to tally transitivities / global clustering coefficients for generated networks. Default: false.

Examples

Live Editor
Result

In a network, the nodes are assumed to be fixed but the edges are random, i.e. there is some random process which determines whether there is an edge connecting two nodes.

Let us consider one of the simplest available network models. In the Erdős–Rényi model, there is a fixed probability that an edge exists between any two nodes. We also assume that whether or not an edge exists between two nodes is independent of whether or not other edges exist.

In this model, if we have nodes, each node can be connected to other nodes. The number of edges attached to each node (the degree) is then .