title: Finding associations using Cypher
body: <p>I have associated IDs in a csv format.</p>
  <p>For example :</p>
  <pre><code>ID, Associated_ID
  1,2
  3,4
  8,1
  2,100
  100,100
  8,101
  200,200
  </code></pre>
  <p>I want to get all associated IDs.</p>
  <p>In this case, the expected result is:</p>
  <blockquote>
  <p>[1,2,8,100,101]</p>
  <p>[3,4]</p>
  <p>[200]</p>
  </blockquote>
  <pre><code>load csv from 'file:///test/test.data'  AS line 
  CREATE (:ids { mc: line[0], associated_mc:line[1]})
  MERGE (m1:id {name: line[0]}) 
  MERGE (m2:id {name: line[1]}) 
  MERGE (m1)-[:SAME]-&gt;(m2);
  MATCH p=(a)-[r:SAME*]-(b) RETURN p;
  </code></pre>