Cleanup Pairs [String,String]

Description

Cleanup pairs in SOURCE, by e.g., removing self-pairs, symmetric pairs, etc. When removing symmetric pairs, it is unknown which of the two variants (a,b) or (b,a) will be removed.

Input

  • SOURCE [STRING,STRING]: a list of string pairs

Output

  • RESULT [STRING,STRING]: a list of string pairs