Here is what I want to do: Connect users to the videos they watch like user -> video in a social graph or network type of graph.
How I did it:
LOAD CSV WITH HEADERS FROM 'asdfjkl;' AS line
CREATE (u {user: line.user }) - [:VIEW] -> (v {video: line.video})
RETURN u, v
The CSV file has 2 columns with headers user and video. Under user is a number identifying each user and under video is a number identifying each video. One user to one video. Sometimes the users name comes up again in the list to a different video. And sometimes the videos number comes up again because it is watched by a different user.
However, this returns relationships users viewing 1 video in each relationship. Thus, there are multiple nodes for each user and video.
What I want to do: Create more of a network or graph database to see what all users are viewing what videos and what all videos are watched by what users. To do this, the users and videos cannot be joined in single one to one relationships like how they are now.
How can I do this? Thank you in advance!