Macaulay2 » Documentation
Packages » Posets :: indexLabeling
next | previous | forward | backward | up | index | toc

indexLabeling -- relabels a poset with the labeling based on the indices of the vertices

Description

This method simply relabels the ground set of the poset based on the indices of the vertices.

i1 : P = booleanLattice 3;
i2 : Q = indexLabeling P;
i3 : P.GroundSet

o3 = {000, 001, 010, 011, 100, 101, 110, 111}

o3 : List
i4 : Q.GroundSet

o4 = {0, 1, 2, 3, 4, 5, 6, 7}

o4 : List

Clearly, $P$ and $Q$ areIsomorphic.

i5 : P == Q

o5 = true

This can be useful for posets whose vertices have unruly names. Note the cache of $P$ is copied to the cache of $Q$ with the appropriate adjustments being made.

See also

Ways to use indexLabeling:

  • indexLabeling(Poset)

For the programmer

The object indexLabeling is a method function.


The source of this document is in Posets.m2:2735:0.