graph.entropy {statGraph} | R Documentation |
Graph Spectral Entropy
Description
graph.entropy
returns the spectral entropy of an undirected graph.
Usage
graph.entropy(Graph, ...)
Arguments
Graph |
the undirected graph (igraph object).
If |
... |
Other relevant parameters for |
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. |
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
set.seed(1)
G <- igraph::sample_gnp(n=100, p=0.5)
entropy <- graph.entropy(Graph = G)
entropy