Not sure how that would work, could you give an example? Superset should return false if all items in s1 are in s2 right? Connected should be true as soon as one neighbor with color2 is in visited