gtoy.rm {RedeR}R Documentation

Random graphs and modules.

Description

A very simple function to generate random graphs with modular structures.

Usage

gtoy.rm(m=3, nmax=30, nmin=3, p1=0.5, p2=0.05, p3=0.9)

Arguments

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.

Value

Returns a igraph object.

Author(s)

Mauro Castro

Examples


#g<-gtoy.rm()


[Package RedeR version 1.36.0 Index]