Learn R Programming

HyperG (version 1.0.0)

hrank: Rank of a hypergraph.

Description

Return the rank and corank of a hypergraph. The rank is the maximum cardinality of a hyperedge, the corank (sometimes called the anti-rank) is the minimum.

Usage

hrank(h)

Arguments

h

a hypergraph.

Value

a number.

References

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

Examples

Run this code
# NOT RUN {
h <- hypergraph_from_edgelist(list(1:5,4:7,c(1,6)))
hrank(h)   # 5
hcorank(h) # 2
# }

Run the code above in your browser using DataLab