hypergraph.entropy: Hypergraph Entropy

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/hypergraph.entropy.R

Description

The hypergraph entropy, which is a sum of the suitably scaled eigenvalues of the hypergraph Laplacian.

Usage

1

Arguments

h

a hypergraph.

Details

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].

Value

a number.

Author(s)

David J. Marchette dmarchette@gmail.com

References

Bretto, Alain, Hypergraph theory, An introduction. Springer, 2013.

See Also

hypergraph_laplacian_matrix.

Examples

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

HyperG documentation built on March 4, 2021, 5:06 p.m.