This method simply relabels the ground set of the poset based on the indices of the vertices.
|
|
|
|
Clearly, $P$ and $Q$ areIsomorphic.
|
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.
The object indexLabeling is a method function.