I have the following polynomial function $$f= x_{1,2} x_{2,4}+x_{1,3} x_{3,2} x_{2,4}+x_{1,2} x_{2,3} x_{3,2} x_{2,4}+x_{1,3} x_{3,4}+x_{1,2} x_{2,3} x_{3,4}$$
I want to convert the polynomial function to set consisting of terms of polynomial function as follows,
$$\{x_{1,2} x_{2,4},x_{1,3} x_{3,2} x_{2,4},x_{1,2} x_{2,3} x_{3,2} x_{2,4},x_{1,3} x_{3,4},x_{1,2} x_{2,3} x_{3,4}\}$$
Then, delete terms that contain another terms in the set.
$$x_{1,2} x_{2,4}\subset x_{1,2} x_{2,3} x_{3,2} x_{2,4}$$
so we delete $x_{1,2} x_{2,3} x_{3,2} x_{2,4}$ and we get,
$$S=\{x_{1,2} x_{2,4},x_{1,3} x_{3,4},x_{1,3} x_{3,2} x_{2,4},x_{1,2} x_{2,3} x_{3,4}\}$$
the mathematica code of the polynomial function $f$
f=Subscript[x, 1, 2] Subscript[x, 2, 4] +
Subscript[x, 1, 3] Subscript[x, 2, 4] Subscript[x, 3, 2] +
Subscript[x, 1, 2] Subscript[x, 2, 3] Subscript[x, 2, 4] Subscript[x,
3, 2] + Subscript[x, 1, 3] Subscript[x, 3, 4] +
Subscript[x, 1, 2] Subscript[x, 2, 3] Subscript[x, 3, 4]
Thanks for the help.