a = numpy.array(a)
a.sort(axis=1)
b = numpy.ascontiguousarray(a).view(numpy.dtype((numpy.void, a.dtype.
    itemsize * a.shape[1])))
_, inv, ct = numpy.unique(b, return_inverse=True, return_counts=True)
print(ct[inv] == 1)
Find unique pairs in list of pairs