Learn R Programming

HyperG (version 1.0.0)

hypergraph.is.connected: Is the hypergraph connected?

Description

Uses the igraph is.connected function to determine if a hypergraph is connected.

Usage

hypergraph.is.connected(h)

Arguments

h

a hypergraph.

Value

a logical.

Details

First the hypergraph is converted to a graph. Then the resulting graph is passed to the igraph is.connected function.

See Also

is.connected.

Examples

Run this code
# NOT RUN {
   hypergraph.is.connected(hypergraph_from_edgelist(list(1:4,3:5)))
	## TRUE
   hypergraph.is.connected(hypergraph_from_edgelist(list(1:4,5:7)))
	## FALSE
# }

Run the code above in your browser using DataLab