Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 1739

Macaulay2-1.3.1-8.fc15.i686.rpm

-- -*- M2-comint -*- {* hash: 1515411786 *}

i1 : R = QQ[a,b,c,d,e];

i2 : c5 = graph {a*b,b*c,c*d,d*e,e*a}; -- graph of the 5-cycle

i3 : complementGraph c5 -- the graph complement of the 5-cycle

o3 = Graph{edges => {{b, d}, {a, d}, {c, e}, {b, e}, {a, c}}}
           ring => R
           vertices => {a, b, c, d, e}

o3 : Graph

i4 : c5hypergraph = hyperGraph c5 -- the 5-cycle, but viewed as a hypergraph

o4 = HyperGraph{edges => {{a, b}, {b, c}, {c, d}, {a, e}, {d, e}}}
                ring => R
                vertices => {a, b, c, d, e}

o4 : HyperGraph

i5 : complementGraph c5hypergraph

o5 = HyperGraph{edges => {{c, d, e}, {a, d, e}, {b, a, e}, {c, b, d}, {c, b, a}}}
                ring => R
                vertices => {a, b, c, d, e}

o5 : HyperGraph

i6 :