Top
Back: secondaryFan
Forward: splitPolygon
FastBack:
FastForward:
Up: polymake_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.13.1.9 cycleLength

Procedure from library polymake.lib (see polymake_lib).

Usage:
cycleLength(boundary,interior); list boundary, intvec interior

Assume:
boundary is a list of integer vectors describing a cycle in some convex lattice polygon around the lattice point interior ordered clock wise

Return:
string, the cycle length of the corresponding cycle in the dual tropical curve

Example:
 
LIB "polymake.lib";
// the integer vectors in boundary are lattice points on the boundary
// of a convex lattice polygon in the plane
list boundary=intvec(0,0),intvec(0,1),intvec(0,2),intvec(2,2),
intvec(2,1),intvec(2,0);
// interior is a lattice point in the interior of this lattice polygon
intvec interior=1,1;
// compute the general cycle length of a cycle of the corresponding cycle
// in the dual tropical curve, note that (0,1) and (2,1) do not contribute
cycleLength(boundary,interior);


Top Back: secondaryFan Forward: splitPolygon FastBack: FastForward: Up: polymake_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.