Macaulay2 » Documentation
Packages » Triangulations :: flips
next | previous | forward | backward | up | index | toc

flips -- legal bistellar flips of a triangulation, computed via topcom

Description

This is a thin wrapper around topcomFlips. Unlike flipCandidates, which returns every circuit on a codim-2 wall of $T$ (not all of which are flippable), this function returns only the circuits that correspond to a legal bistellar flip of $T$, including support-changing flips.

i1 : A = transpose matrix {{0,3},{0,1},{-1,-1},{1,-1},{-4,-2},{4,-2}}

o1 = | 0 0 -1 1  -4 4  |
     | 3 1 -1 -1 -2 -2 |

              2       6
o1 : Matrix ZZ  <-- ZZ
i2 : T = regularFineTriangulation A

o2 = triangulation {{0, 1, 2}, {0, 1, 3}, {0, 2, 4}, {0, 3, 5}, {1, 2, 3}, {2, 3, 4}, {3, 4, 5}}

o2 : Triangulation
i3 : flips T

o3 = {{{0, 2, 3}, {1}}, {{1, 4}, {0, 2}}, {{1, 5}, {0, 3}}, {{2, 5}, {3, 4}}}

o3 : List

See also

Ways to use flips:

  • flips(Triangulation)

For the programmer

The object flips is a method function with options.


The source of this document is in /build/reproducible-path/macaulay2-1.26.06+ds/M2/Macaulay2/packages/Triangulations.m2:2374:0.