graph_indifference: Random Indifference Graph

View source: R/create_graphs.R

graph_indifferenceR Documentation

Random Indifference Graph

Description

Create a random indifference graph. An indifference graph is an interval graph where intervals have length 1.

Usage

graph_indifference(n, r = 2)

Arguments

n

number of nodes

r

radius

Details

'n' points (x) are sampled uniformly at random between 0 and 'r'. The interval is then given by (x,x+1)

Value

indifference graph as igraph object and interval representation (a,b)

Author(s)

David Schoch

See Also

[graph_interval,graph_tolerance]

Examples

graph_indifference(n = 10)

schochastics/levelnet documentation built on Feb. 3, 2023, 4:20 a.m.