Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/hypergraph.entropy.R
The hypergraph entropy, which is a sum of the suitably scaled eigenvalues of the hypergraph Laplacian.
1 |
h |
a hypergraph. |
Bretto, page 9, defines hypergraph entropy as follows. Let L'(h) be the Laplacian of h divided by the sum of its diagonal. Then the |V|-1 eigenvalues sum to 1, and the entropy is defined by -sum ev[i]*log2 ev[i].
a number.
David J. Marchette dmarchette@gmail.com
Bretto, Alain, Hypergraph theory, An introduction. Springer, 2013.
1 2 3 | h <- hypergraph_from_edgelist(list(3:4,1:3,c(3,5,7:10),c(4,6),c(3,5,8)))
hypergraph.entropy(h)
## 2.802822
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.