Learn R Programming

statGraph (version 1.0.6)

graph.entropy: Graph Spectral Entropy

Description

graph.entropy returns the spectral entropy of an undirected graph.

Usage

graph.entropy(Graph, ...)

Value

A list with class 'statGraph' containing the following components:

method:

a string indicating the used method.

info:

a string showing details about the method.

data.name:

a string with the data's name(s).

entropy:

a real number corresponding to the graph spectral entropy.

Arguments

Graph

the undirected graph (igraph object). If Graph has the attribute eigenvalues containing the eigenvalues of Graph, such values will be used to compute its spectral density.

...

Other relevant parameters for graph.spectral.density.

References

Takahashi, D. Y., Sato, J. R., Ferreira, C. E. and Fujita A. (2012) Discriminating Different Classes of Biological Networks by Analyzing the Graph Spectra Distribution. _PLoS ONE_, *7*, e49949. doi:10.1371/journal.pone.0049949.

Examples

Run this code
set.seed(1)
G <- igraph::sample_gnp(n=100, p=0.5)
entropy <- graph.entropy(Graph = G)
entropy

Run the code above in your browser using DataLab