Combinatorica`
Combinatorica`
SetPartitionQ
SetPartitionQ[sp,s]
determines if sp is a set partition of set s.
SetPartitionQ[sp]
tests if sp is a set of disjoint sets.
Details and Options
- To use SetPartitionQ, you first need to load the Combinatorica Package using Needs["Combinatorica`"].