Removing duplicates from a list of vertices

Hi Team

I was working on a use case which required me to assign a path to a person and automatically delete the other paths which contain the vertices that were present in the assigned path.

I have a list of paths available in a
MapAccum < INT, LISTAccum>

My requirement is if I say 3 paths available
(1 → [a,b,c,d])
(2 → [b,c,d])
(3 ->[e,f])

and if the 1st path gets assigned to a person then automatically i have to delete the paths that contain vertices a,b,c,or d.
So in this case path 2 should be automatically deleted.

Can anyone help me out with this?