Learn R Programming

ergm (version 3.9.4)

degreedist: Computes and Returns the Degree Distribution Information for a Given Network

Description

The degreedist generic computes and returns the degree distribution (number of vertices in the network with each degree value) for a given network.

Usage

degreedist(object, ...)

# S3 method for network degreedist(object, print = TRUE, ...)

Arguments

object

a network object or some other object for which degree distribution is meaningful.

Additional arguments to functions.

print

logical, whether to print the degree distribution.

Value

If directed, a matrix of the distributions of in and out degrees; this is row bound and only contains degrees for which one of the in or out distributions has a positive count. If bipartite, a list containing the degree distributions of b1 and b2. Otherwise, a vector of the positive values in the degree distribution

Methods (by class)

  • network: Method for network objects.

Examples

Run this code
# NOT RUN {
data(faux.mesa.high)
degreedist(faux.mesa.high)

# }

Run the code above in your browser using DataLab