gtoy.rm {RedeR} | R Documentation |
A very simple function to generate random graphs with modular structures.
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
#g<-gtoy.rm()