View source: R/create_graphs.R
graph_interval | R Documentation |
Create a random interval graph. In an interval graph, each node is characterized by an interval on the real line. Two nodes are connected, if their intervals overlap.
graph_interval(n, r = 2, sd = 0.5)
n |
number of nodes |
r |
radius (see details) |
sd |
standard deviation (see details) |
Interval graphs are created as follows. First, n random points x are created uniformly at random between 0 and 'r'. For each point, a value Y is created from a normal distribution with mean X and standard deviation is 'sd'. In this way, it is possible to control the density of the network. The larger 'r' and the larger 'sd' the more likely do intervals overlap.
interval graph as igraph object and interval representation as node attribute (a,b)
David Schoch
[graph_indifference,graph_tolerance]
graph_interval(n = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.