next | previous | forward | backward | up | top | index | toc | directory | Macaulay 2 web site

simplicialComplexToHyperGraph -- change the type of a simplicial complex to a (hyper)graph

Synopsis

Description

This function takes a simplicial complex and changes it type to a HyperGraph by returning a hypergraph whose edges are defined by the facets of the simplicial complex. This is the reverse of the function hyperGraphToSimplicialComplex
i1 : S = QQ[a..f];
i2 : Delta = simplicialComplex {a*b*c,b*c*d,c*d*e,d*e*f}

o2 = | def cde bcd abc |

o2 : SimplicialComplex
i3 : H = simplicialComplexToHyperGraph Delta

o3 = HyperGraph{edges => {{a, b, c}, {b, c, d}, {c, d, e}, {d, e, f}}}
                ring => S
                vertices => {a, b, c, d, e, f}

o3 : HyperGraph

See also

Ways to use simplicialComplexToHyperGraph :