Macaulay2 » Documentation
Packages » PolyominoIdeals » isConvex
next | previous | forward | backward | up | index | toc

isConvex -- Convexity of a collection of cells

Description

Checks whether a collection of cells is convex, that is, both row- and column-convex.

i1 : Q = cellCollection {{1,1},{1,2},{2,1},{2,2}};
i2 : isConvex Q

o2 = true


i3 : Q = cellCollection {{1,1},{2,1},{3,1},{1,2},{3,2}};
i4 : isConvex Q

o4 = false


i5 : Q = cellCollection {{1,1},{1,2},{1,3},{2,3},{2,1}};
i6 : isConvex Q

o6 = false

See also

Ways to use isConvex:

  • isConvex(CollectionOfCells)

For the programmer

The object isConvex is a method function with options.


The source of this document is in PolyominoIdeals.m2:1809:0.