A poset is naturally labeled if the ground set is ordered $v_1, \ldots, v_n$ and if $v_i \leq v_j$ in $P$ implies $i \leq j$. This method relabels the ground set of the poset (suppose it has $n$ vertices) to be $0, 1, \ldots, n-1$.
|
|
|
If startIndex is specified, then the values are shifted by that amount. This can be useful for making a disjoint union of posets.
|
|
|
Note the cache of $P$ is copied to the cache of $Q$ with the appropriate adjustments being made.
The object naturalLabeling is a method function.