powered by
Uses the igraph is.connected function to determine if a hypergraph is connected.
hypergraph.is.connected(h)
a hypergraph.
a logical.
First the hypergraph is converted to a graph. Then the resulting graph is passed to the igraph is.connected function.
is.connected
is.connected.
# 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