Learn R Programming

HyperG (version 1.0.0)

hypergraph.as.edgelist: Convert between hypergraphs and graphs.

Description

Convert a hypergraph to a graph or a graph, matrix or list to a hypergraph.

Usage

hyper_edges(h)
hypergraph_as_edgelist(h)

Arguments

h

a hypergraph.

Value

A list of the hyperedges.

Details

The function hypergraph_as_edgelist is just an alias for hyper_edges.

See Also

as_edgelist

Examples

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

Run the code above in your browser using DataLab