net.degree.constraint: Generate a degree-constraint graph

Description Usage Arguments Details Value Author(s) References Examples

View source: R/net.degree.constraint.R

Description

Generate a degree-constraint graph.

Usage

1
net.degree.constraint(DEG, c.alpha, c.min)

Arguments

DEG

Degree sequence.

c.alpha

Scaling parameter of the community-size distribution.

c.min

Minimal size of a community.

Details

The generated network has a pre-defined degree sequence with multiple (overlapping) communities.

Value

A list containing the nodes of the network and their respective neighbors.

Author(s)

Xu Dong, Nazrul Shaikh

References

Dong X, Castro L, Shaikh N (2020). “fastnet: An R Package for Fast Simulation and Analysis of Large-Scale Social Networks.” Journal of Statistical Software, 96(7), 1-23. doi:10.18637/jss.v096.i07 (URL: https://doi.org/10.18637/jss.v096.i07)

Examples

1
2
3
4
## Not run: 
DEG <- sample(seq(5,15),100, replace=TRUE)
x <- net.degree.constraint(DEG, c.alpha=2, c.min=3)
## End(Not run)

fastnet documentation built on Jan. 13, 2021, 5:28 p.m.