Learn R Programming

HyperG (version 1.0.0)

dual: Dual hypergraph.

Description

Construct the dual hypergraph of a hypergraph.

Usage

dual_hypergraph(h)

Arguments

h

a hypergraph.

Value

a hypergraph.

Details

The dual hypergraph is a hypergraph whose nodes are the original hyper-edges, with hyper-edges indicating the original incidence. Essentially, the incidence matrix of the dual hypergraph is the transpose of the original incidence matrix.

References

Tyshkevich, R.I. and Zverovich, Vadim E, Line hypergraphs,Discrete Mathematics, 161, 265--283,1996.

Examples

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

Run the code above in your browser using DataLab