Description Usage Arguments Methods Examples
R6 Class for simulation of Graphs
1 | experiment = graphModel$new(type="erdos",size=30, p.or.m =0.1,eta=0.2,extraeta=eta/5)
|
- 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
$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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.