View source: R/graph.entropy.R
| graph.entropy | R Documentation | 
graph.entropy returns the spectral entropy of an undirected graph.
graph.entropy(Graph, ...)
| Graph | the undirected graph (igraph object).
If  | 
| ... | Other relevant parameters for  | 
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. | 
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.
set.seed(1)
G <- igraph::sample_gnp(n=100, p=0.5)
entropy <- graph.entropy(Graph = G)
entropy
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.