The function returns indices of elements from the given list x
, which are incomparable
(i.e., it is neither subset nor superset) with any preceding element. The first element
is always selected. The next element is selected only if it is incomparable with all
previously selected elements.
which_antichain(x, distance = 0)
an integer vector of indices of selected (incomparable) elements.
a list of integerish vectors
a non-negative integer, which specifies the allowed discrepancy between compared sets
Michal Burda