<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>simplicialComplexToHyperGraph -- makes a (hyper)graph from a simplicial complex</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_smallest__Cycle__Size.html">next</a> | <a href="_ring_lp__Hyper__Graph_rp.html">previous</a> | <a href="_smallest__Cycle__Size.html">forward</a> | <a href="_ring_lp__Hyper__Graph_rp.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>simplicialComplexToHyperGraph -- makes a (hyper)graph from a simplicial complex</h1> <div class="single"><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>H = simplicialComplexToHyperGraph(D)</tt></div> </dd></dl> </div> </li> <li><div class="single">Inputs:<ul><li><span><tt>D</tt>, <span>a <a href="../../SimplicialComplexes/html/___Simplicial__Complex.html">simplicial complex</a></span>, the input</span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><tt>H</tt>, <span>a <a href="___Hyper__Graph.html">hypergraph</a></span>, whose edges are the facets of D</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div><div>This function makes a <a href="___Hyper__Graph.html" title="a class for hypergraphs">HyperGraph</a> from a <a href="../../SimplicialComplexes/html/___Simplicial__Complex.html" title="">SimplicialComplex</a>. The edges of the HyperGraph are given by the facets of the SimplicialComplex. This is the inverse of the function <a href="_hyper__Graph__To__Simplicial__Complex.html" title="makes a simplicial complex from a (hyper)graph">hyperGraphToSimplicialComplex</a>.</div> <table class="examples"><tr><td><pre>i1 : S = QQ[a..f];</pre> </td></tr> <tr><td><pre>i2 : Delta = simplicialComplex {a*b*c,b*c*d,c*d*e,d*e*f} o2 = | def cde bcd abc | o2 : SimplicialComplex</pre> </td></tr> <tr><td><pre>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</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_hyper__Graph__To__Simplicial__Complex.html" title="makes a simplicial complex from a (hyper)graph">hyperGraphToSimplicialComplex</a> -- makes a simplicial complex from a (hyper)graph</span></li> <li><span><a href="___Constructor_sp__Overview.html" title="a summary of the many ways of making graphs and hypergraphs">Constructor Overview</a> -- a summary of the many ways of making graphs and hypergraphs</span></li> </ul> </div> <div class="waystouse"><h2>Ways to use <tt>simplicialComplexToHyperGraph</tt> :</h2> <ul><li>simplicialComplexToHyperGraph(SimplicialComplex)</li> </ul> </div> </div> </body> </html>