Learn R Programming

fastnet (version 1.0.0)

metric.degree.mean: Mean Degree

Description

Calculate the mean degree of a graph.

Usage

metric.degree.mean(g)

Arguments

g

The input network.

Value

A real constant.

Details

The mean degree is the average value of the degrees of all nodes in graph g.

Examples

Run this code
# NOT RUN {
x <-  net.erdos.renyi.gnp(1000, 0.01)
metric.degree.mean(x)
# }

Run the code above in your browser using DataLab