title: Neo4j cypher query get all nodes between a start and end node including
body: <p>I have created a model of Route/Stops(Rail/Bus)/Operators and trying to find a route by specifying the start/end stop. When I run the below query I am getting an extra stop node ("PUD") which I think should not be included in the result!! Appreciate if you let me know why the "PUD" is included and whether this is a right approach or not?</p>
  
  <pre><code>MATCH p = (a:Station)-[r:Goto|Operates|HasStop|Changeto*0..]-(c:Station) 
  WHERE (a.name='LDS' AND 234 IN a.time) 
  AND c.name='MVC' 
  RETURN p
  </code></pre>
  
  <p>Model: <img src="https://i.stack.imgur.com/ZXazg.png" alt="Model"></p>
  
  <p>Result: <img src="https://i.stack.imgur.com/tCNR3.png" alt="Result"></p>