I have million of objects, each with an array smaller than 10 elements, which are the names of other objects in the dataset.
Basically
{
a:[b,c,d,],
b:[c,d,e],
c:[a,e,f],
...
e:[a,b,c]
}
will result in
(a,c),(b,e),(c,e)
As for each of this tuples element A
points to element B
and vice-versa,
e.g b
has e
in his list, and e
has b
Any ideas beside for elem in elems: {for elem in elems:{...}}
?