title: How to fetch a subgraph of first neighbors in neo4j?
body: <p>I fetch first <em>n</em> neighbors of a node with this query in neo4j:
  (in this example, n = 6)</p>
  
  <p>I have a weighted graph, and so I also order the results by weight:</p>
  
  <pre><code>START start_node=node(1859988)
  MATCH start_node-[rel]-(neighbor)
  RETURN DISTINCT neighbor,
  rel.weight AS weight ORDER BY proximity DESC LIMIT 6;
  </code></pre>
  
  <p>I would like to fetch a whole subgraph, including second neighbors (first neighbors of first six children).</p>
  
  <p>I tried smtg like :</p>
  
  <pre><code>START start_node=node(1859988)
  MATCH start_node-[rel]-(neighbor)
  FOREACH (neighbor | MATCH neighbor-[rel2]-(neighbor2) )
  RETURN DISTINCT neighbor1, neighbor2, rel.proximity AS proximity ORDER BY proximity DESC LIMIT 6, rel2.proximity AS proximity ORDER BY proximity DESC LIMIT 6;
  </code></pre>
  
  <p>the syntax is still wrong but I am also uncertain about the output:
  I would like to have a table of tuples parent, children and weight:
  [node_A - node_B - weight]</p>
  
  <p>I would like to see if it is performing better one query or six queries.
  Can someone help in clarifying how to iterate a query (FOREACH) and format the output?</p>
  
  <p>thank you!</p>