 LIB "polymake.lib";
==> Welcome to polymake version
==> Copyright (c) 19972015
==> Ewgenij Gawrilow, Michael Joswig (TU Darmstadt)
==> http://www.polymake.org
// the lattice polygon spanned by the points (0,0), (3,0) and (0,3)
// with all integer points as markings
list points=intvec(1,1),intvec(3,0),intvec(2,0),intvec(1,0),
intvec(0,0),intvec(2,1),intvec(0,1),intvec(1,2),
intvec(0,2),intvec(0,3);
// define a triangulation
list triang=intvec(1,2,5),intvec(1,5,7),intvec(1,7,9),intvec(8,9,10),
intvec(1,8,9),intvec(1,2,8);
// compute the points connected to (1,1) in triang
cyclePoints(triang,points,1);
==> [1]:
==> 3,0
==> [2]:
==> 0,0
==> [3]:
==> 0,1
==> [4]:
==> 0,2
==> [5]:
==> 1,2
