title: Merging nodes with the same data using Neo4j
body: <p>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.</p>
  
  <p>How I did it:</p>
  
  <pre><code>LOAD CSV WITH HEADERS FROM 'asdfjkl;' AS line
  CREATE (u {user: line.user }) - [:VIEW] -&gt; (v {video: line.video})
  RETURN u, v
  </code></pre>
  
  <p>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.</p>
  
  <p>However, this returns relationships users viewing 1 video in each relationship. Thus, there are multiple nodes for each user and video.</p>
  
  <p>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.</p>
  
  <p>How can I do this? Thank you in advance!</p>