Macaulay2 » Documentation
Packages » CellularResolutions :: isCycle
next | previous | forward | backward | up | index | toc

isCycle -- checks if a list of cells with orientation make a cycle

Synopsis

Description

This determines whether the given pairs, whose first entry is a cell and whose second entry is its multiplicity, form a cycle in the homological sense.

i1 : R = QQ[x,y,z];
i2 : vx = newSimplexCell({},x);
i3 : vy = newSimplexCell({},y);
i4 : vz = newSimplexCell({},z);
i5 : lxy = newSimplexCell({vx,vy});
i6 : lyz = newSimplexCell({vy,vz});
i7 : lxz = newSimplexCell({vx,vz});
i8 : assert(isCycle {(lxy,1)} == false);
i9 : assert(isCycle {{lxy,1},{lyz,1},{lxz,-1}} == true);
i10 : assert(isCycle {{lxy,1},{lyz,1},{lxz,1}} == false);

Ways to use isCycle :

For the programmer

The object isCycle is a method function.