reedmolloy {degreenet}R Documentation

Generate a undirected network with a given sequence of degrees

Description

Generate a undirected network where the degree of each actor is specified. The degree is the number of actors the actor is tied to. This returns a network object and requires the igraph package.

Usage

reedmolloy(deg, maxit=10, verbose=TRUE)

Arguments

deg

vector of counts where element i is the degree of actor i. Its sum should be even.

maxit

integer; maximum number of jitterings of the degree sequence to find a valid network.

verbose

Print out details of the progress of the algorithm.

Value

The network is returned as a network object.

Note

See the papers on https://handcock.github.io/?q=Holland for details

References

Jones, J. H. and Handcock, M. S. "An assessment of preferential attachment as a mechanism for human sexual network formation," Proceedings of the Royal Society, B, 2003, 270, 1123-1128.

See Also

ayulemle, dyule

Examples

# Now, simulate a Poisson Lognormal distribution over 100
# observations with mean = -1 and s.d. = 1.

set.seed(2)
s4 <- simpln(n=100, v=c(-1,1))
table(s4)
#
simr <- reedmolloy(s4)
simr

[Package degreenet version 1.3-5 Index]