Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Prune non-maximal subsets from a list of subsets
ResourceFunction["MaximalSubsets"][list] prunes non-maximal subsets from the sets in list. |
Here is a list of sets:
| In[1]:= |
Remove the non-maximal subsets {d}, {a}, and {a,b}:
| In[2]:= |
| Out[2]= |
MaximalSubsets can handle a large list of subsets:
| In[3]:= |
The number of maximal subsets:
| In[4]:= |
| Out[4]= |
This work is licensed under a Creative Commons Attribution 4.0 International License