Learn R Programming

HyperG (version 1.0.0)

hypergraph.complement: The complement of a hypergraph.

Description

The complement of a hypergraph is a hypergraph consisting of the hyper-edges that are not found in the original hypergraph.

Usage

hypergraph.complement(h)

Arguments

h

a hypergraph.

Value

a hypergraph.

Details

The incidence matrix of the complement of h has a 0 in those places the original matrix had a 1, and a 1 in those places the original matrix had a 0.

Examples

Run this code
# NOT RUN {
    h <- hypergraph_from_edgelist(list(c(2,3),c(1,4)))
	 hypergraph.complement(h)
# }

Run the code above in your browser using DataLab