Subset | R Documentation |
Given a list of positive integer vectors representing sets,
return a vector of all pairwise intersections (allIntersect
),
return a vector of all pairwise unions (allUnion
),
or a vector indicating the sets that are maximal
in the sense of not being a subset of any other set in the list
(maximal
). If the list contains duplicate sets,
at most one of each class of duplicates is declared maximal.
allIntersect(sets, pow2)
allUnion(sets, pow2)
maximal(sets, pow2)
sets |
a list of vectors of |
pow2 |
use hash table of size |
For allIntersect
or allUnion
a
list of length choose(length(sets), 2)
giving all pairwise intersections (resp. unions) of elements of sets
.
For maximal
a logical vector of the same length as sets
indicating the maximal elements.
Note: allIntersect
and allUnion
run over the pairs
in the same order so they can be matched up.
The functions allIntersect
and allUnion
were called all.intersect
and all.union
in previous
versions of this package. The names were changed because the
all
function was made generic and these function are
not methods of that one. These functions were originally intended to
be used to find the faces of a convex set using the output of
scdd
but now the allfaces
function does a better
job and does it much more efficiently. Hence these functions have no known
use, but have not been deleted for reasons of backwards compatibility.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.