Macaulay2 » Documentation
Packages » EdgeIdeals :: antiCycle
next | previous | forward | backward | up | index | toc

antiCycle -- returns a graph of an anticycle

Synopsis

Description

This function returns the graph that is the complement of the cycle obtained from L by applying the function cycle.

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

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

o2 : Graph
i3 : antiCycle(R,4)

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

o3 : Graph
i4 : antiCycle {e,c,d,b}

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

o4 : Graph
i5 : complementGraph antiCycle R == cycle R

o5 = true

See also

Ways to use antiCycle:

For the programmer

The object antiCycle is a method function.