graphModel: R6 Class for simulation of Graphs

Description Usage Arguments Methods Examples

Description

R6 Class for simulation of Graphs

Usage

1
experiment = graphModel$new(type="erdos",size=30, p.or.m =0.1,eta=0.2,extraeta=eta/5)

Arguments

- type="erdos" type of simulated graph ('erdos', 'starerdos', 'star', 'tree')

- size=NULL number of nodes (variables)

- p.or.m=NULL probability of an edge (if smaller than 1) or number of edges (if greater than 1)

eta=NULL factor affected to ...

extraeta=NULL factor affected to ...

adjmat=NULL simulated adjacency matrix

Methods

$new(type="erdos",size=30, p.or.m =0.1,eta=0.2,extraeta=eta/5) creates a random graph

$plot() plot the graph using the igraph plot function

Examples

1
2
3
4
5
## Not run: 
star.graph <- graphModel$new(type = "starerdos",size=30, p.or.m = 0.05)
plot(star.graph)

## End(Not run)

cambroise/LITree documentation built on May 6, 2019, 8:32 p.m.