Learn R Programming

SNscan (version 1.0)

group.graph: Generate igraph Objects with Different Connection Characteristics.

Description

Generate two groups of igraph object with different connection probabilities.

Usage

group.graph(V, cv = NULL, p1, p2 = NULL)

Arguments

V
The number of vertices.
cv
The assigned nodes with connection probability p2.
p1
The connection probability for group 1.
p2
The connection probability for group 2.

Value

An igraph object.

Details

If there is only one group, it is equivalent to the Erdos and Renyi model.

See Also

erdos.renyi.game

Examples

Run this code
group.graph(V=10, cv =1:3 , p1=1/10, p2 = 1/2)

Run the code above in your browser using DataLab