title: neo4j find all paths between nodes. Trek & mountaineering routing
body: <p>I start to learn neo4j. I am using the graph</p>
  
  <p><a href="http://neo4j.com/graphgist/b1f6439d-2904-4fcf-8017-8c83d57ef20b#listing_category=sports-and-recreation" rel="nofollow">http://neo4j.com/graphgist/b1f6439d-2904-4fcf-8017-8c83d57ef20b#listing_category=sports-and-recreation</a></p>
  
  <p>and I have a problem. I do not know how to get all the connections from <code>Darjeeling</code> to <code>Sandakphu</code>. All queries return invalid input or no rows.</p>
  
  <p>Could anyone see how should be build correct query?</p>
  
  <p>1)This is correct</p>
  
  <pre><code>MATCH (p:peak{name:'Sandakphu'})-[r:twowheeler*]-(t:town{name:'Rimbik'}) return distinct(r)
  </code></pre>
  
  <p>What's wrong with this one if I want all routes</p>
  
  <pre><code>MATCH (p:peak{name:'Sandakphu'})-[r:*]-(t:town{name:'Darjeeling'}) return distinct(r)
  </code></pre>
  
  <p>2)
  This is correct</p>
  
  <pre><code>MATCH (a:village { name: 'Sirikhola' }),(b:village{ name: 'Gurdum' }) MATCH (a)-[r]-&gt;(b) RETURN r
  </code></pre>
  
  <p>With this</p>
  
  <pre><code>MATCH (a:village { name: 'Sirikhola' }),(b:town{ name: 'Darjeeling' }) MATCH (a)-[r]-&gt;(b) RETURN r
  </code></pre>
  
  <p>i have no rows</p>