Learn R Programming

HyperG (version 1.0.0)

clique_hypergraph: Clique Hypergraph

Description

Construct a clique hypergraph from a graph.

Usage

clique_hypergraph(g)

Arguments

g

a graph.

Value

a hypergraph.

Warning

The calculation of the maximal cliques of a graph can take a long time, and dense graphs may have many maximal cliques, so use this funciton with care.

Details

A clique hypergraph is one whose hyper-edge correspond to the maximal cliques of a given graph.

References

Voloshin, Vitaly I. Introduction to graph and hypergraph theory. Nova Science Publ., 2009.

See Also

max_cliques, ~~~

Examples

Run this code
# NOT RUN {
   g <- graph_from_literal(1-2-3-1,3-4-5-3)
	h <- clique_hypergraph(g)
# }

Run the code above in your browser using DataLab