Sophie

Sophie

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

Macaulay2-1.3.1-8.fc15.i686.rpm

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

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

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

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

o2 : Graph

i3 : H1 = inducedHyperGraph(G,{b,c,d,e})

o3 = HyperGraph{edges => {{b, c}, {c, d}, {d, e}}}
                ring => QQ[b, c, d, e]
                vertices => {b, c, d, e}

o3 : HyperGraph

i4 : H2 = inducedHyperGraph(G,{a,b,d,e})

o4 = HyperGraph{edges => {{a, b}, {a, e}, {d, e}}}
                ring => QQ[a, b, d, e]
                vertices => {a, b, d, e}

o4 : HyperGraph

i5 : use ring H1

o5 = QQ[b, c, d, e]

o5 : PolynomialRing

i6 : inducedHyperGraph(H1,{c,d,e})

o6 = HyperGraph{edges => {{c, d}, {d, e}}}
                ring => QQ[c, d, e]
                vertices => {c, d, e}

o6 : HyperGraph

i7 : use ring G

o7 = R

o7 : PolynomialRing

i8 : inducedHyperGraph(G,{b,c,d,e},OriginalRing=>true) --H1 but in bigger ring

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

o8 : HyperGraph

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

i10 : G = graph {a*b,b*c,c*d,d*e,e*a} -- graph of the 5-cycle

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

o10 : Graph

i11 : H = inducedHyperGraph(G,{b,c,d})

o11 = HyperGraph{edges => {{b, c}, {c, d}}}
                 ring => QQ[b, c, d]
                 vertices => {b, c, d}

o11 : HyperGraph

i12 : changeRing(H,R,{b,c,d})

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

o12 : HyperGraph

i13 :