How do you create links in a node list if you want two nodes linked if they share the same attribute/s

Viewed 19

I have a CSV node list and I want to create an edges list by linking the nodes if they share at least one attribute in the Listed_in column.

ID Listed_in
1 Horror,Sci-Fi
2 Sci-Fi,Adventure
3 Adventure
4 Sci-Fi

That way I can have a new undirected edges list like this:

Source Target
1 2
1 4
2 3
2 4
0 Answers
Related