Learn R Programming

fastnet (version 1.0.0)

metric.degree.entropy: Degree Entropy

Description

Calculate the degree entropy of a graph.

Usage

metric.degree.entropy(g)

Arguments

g

The input network.

Value

A real constant.

Details

Calculates the degree entropy of graph g, i.e. $$Entropy(g) = - \sum_{i=1}^{n} i*\log _2(i)$$

References

Anand, Kartik, and Ginestra Bianconi. "Entropy measures for networks: Toward an information theory of complex topologies." Physical Review E 80, no. 4 (2009): 045102.

Examples

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

Run the code above in your browser using DataLab