Learn R Programming

HyperG (version 1.0.0)

hypergraph_from_literal: Hypergraph from literal.

Description

Similar to the igraph function, except that in this case the literals just indicate the hyper-edges.

Usage

hypergraph_from_literal(...)

Arguments

see details.

Value

a hypergraph.

Details

This takes a collection of hyperedge descriptions, such as a-3-C-9, indicating the hyper-edge containing a,C,3 and 9. It returns the associated hypergraph. This is different from the graph version; in essence, this would be the same as constraining the graph version to require all the argumenst to be pairs. There is no way to produce chains, as in the graph version.

See Also

graph_from_literal.

Examples

Run this code
# NOT RUN {
   h1 <- hypergraph_from_literal(1-2-3,3-a-b,c-1-4)
	
# }
# NOT RUN {
	   plot(h1)
	
# }

Run the code above in your browser using DataLab