Description Usage Arguments Value Author(s) Examples
A very simple function to generate random graphs with modular structures.
1 | gtoy.rm(m=3, nmax=30, nmin=3, p1=0.5, p2=0.05, p3=0.9)
|
m |
Number of modules. |
nmax |
The maximum number of vertices in each module. |
nmin |
The minimum number of vertices in each module. |
p1 |
Probability for adding new vertices to a module. |
p2 |
Probability for drawing an edge between modules. |
p3 |
Probability for drawing an edge within modules. |
Returns a igraph object.
Mauro Castro
1 | #g<-gtoy.rm()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.