Learn R Programming

HyperG (version 1.0.0)

is.hypergraph: Is an object a hypergraph?

Description

Check that an object is a hypergraph object.

Usage

is.hypergraph(h)

Arguments

h

a hypergraph.

Value

A logical.

Details

This only checks that the object's class contains hypergraph.

Examples

Run this code
# NOT RUN {
   h <- hypergraph_from_edgelist(list(1:4,1:2,c(2,3,5),c(3,5:7)))
	g <- as.graph(h)
	is.hypergraph(h)
	is.hypergraph(g)
# }

Run the code above in your browser using DataLab