gtoy.rm: Random graphs and modules.

Description Usage Arguments Value Author(s) Examples

View source: R/Supplements.R

Description

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

Usage

1
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

1
#g<-gtoy.rm()

RedeR documentation built on Nov. 8, 2020, 7:45 p.m.