powered by
Test if a hypergraph is a hypertree.
is.hypertree(h, ...)
a hypergraph.
arguments passed to the igraph is_chordal function.
is_chordal
a logical.
Uses Corollary 8.1.1 of the reference: a hypergraph is a hypertree if and only if it is Helly and it's line graph is chordal.
Voloshin, Vitaly I. Introduction to graph and hypergraph theory. Nova Science Publ., 2009.
is_chordal. line_graph. line.graph, has.helly.
line_graph
line.graph
has.helly
# NOT RUN { h <- hypergraph_from_edgelist(list(1:3,2:4,4:5,c(2,4:5))) is.helly(h) g <- line.graph(h) is_chordal(g) is.hypertree(h) # }
Run the code above in your browser using DataLab