title: Cypher query not returning all expected pathways
body: <p>I set up a simple example for myself to see how Neo4j handles queries involving nodes that have relationships with themselves, and I cannot get Cypher to give me all pathways.</p>
  
  <p>Here's my data:</p>
  
  <pre><code>CREATE (A {name:'A'}), (B {name:'B'}), (C {name:'C'})
  CREATE 
     (A)-[:REL]-&gt;(A),
     (A)-[:REL]-&gt;(B),
     (A)-[:REL]-&gt;(C),
     (B)-[:REL]-&gt;(A),
     (B)-[:REL]-&gt;(B),
     (B)-[:REL]-&gt;(C),
     (C)-[:REL]-&gt;(A),
     (C)-[:REL]-&gt;(B),
     (C)-[:REL]-&gt;(C)
  </code></pre>
  
  <p>And here's the query I'm doing:</p>
  
  <pre><code>MATCH p = (x)-[:REL*1..3]-&gt;(y) 
  WHERE x.name='A' AND y.name='B' AND LENGTH(p) = 3 
  RETURN nodes(p)
  </code></pre>
  
  <p>My expected results are:</p>
  
  <pre><code>A, A, A, B
  A, A, B, B
  A, A, C, B
  A, B, A, B
  A, B, B, B
  A, B, C, B
  A, C, A, B
  A, C, B, B
  A, C, C, B
  </code></pre>
  
  <p>But what I receive is:</p>
  
  <pre><code>[(3 {name:"A"}), (2 {name:"B"}), (1 {name:"C"}), (2 {name:"B"})]
  [(3 {name:"A"}), (1 {name:"C"}), (3 {name:"A"}), (2 {name:"B"})]
  [(3 {name:"A"}), (1 {name:"C"}), (2 {name:"B"}), (2 {name:"B"})]
  [(3 {name:"A"}), (1 {name:"C"}), (1 {name:"C"}), (2 {name:"B"})]
  [(3 {name:"A"}), (3 {name:"A"}), (2 {name:"B"}), (2 {name:"B"})]
  [(3 {name:"A"}), (3 {name:"A"}), (1 {name:"C"}), (2 {name:"B"})]
  </code></pre>
  
  <p>So the pathways I'm not getting are:</p>
  
  <pre><code>A, A, A, B
  A, B, B, B
  A, B, A, B
  </code></pre>
  
  <p>Does anyone have some insight? </p>
  
  <p>Here it is in the console: <a href="http://console.neo4j.org/?id=4srv4h" rel="nofollow">http://console.neo4j.org/?id=4srv4h</a></p>
  
  <p>Thanks in advance.</p>