I have the dictionary values as follows in python:
X = {7: [0, 2], 9: [2, 3], 11: [1, 10], 13: [10, 4], 15: [8, 12], 16: [12, 14, 2], 20: [21, 22] , 32:[13]}
Now I want to take the key values in a list, which has at least one value common in the dictionary.
example:
list of common keys with at least one common value: (7, 9, 16), (11, 13), (15, 16)
also
group of keys that does not share any common value with others.
Example:
(20,32)
What will be the best way to do this?