title: Kevin path at neo4j
body: <p>I am trying to discover how many hops I have to do to know a friend with Cipher. I have these relationships.</p>
  
  <pre><code>(Gutierrez)-[:Conhece]-&gt;(Felipe),
  (Felipe)-[:Conhece]-&gt;(Gutierrez),
  (Felipe)-[:Conhece]-&gt;(Fernando),
  (Fernando)-[:Conhece]-&gt;(Felipe),
  (Fernando)-[:Conhece]-&gt;(Pedro),
  (Pedro)-[:Conhece]-&gt;(Fernando),
  (Pedro)-[:Conhece]-&gt;(Arthur),
  (Arthur)-[:Conhece]-&gt;(Pedro),
  (Arthur)-[:Conhece]-&gt;(Vitor),
  (Vitor)-[:Conhece]-&gt;(Arthur),
  </code></pre>
  
  <p>and when I execute my query it shows Fernando. What I want is to show only Vitor, Pedro and Arthur.</p>
  
  <pre><code>MATCH (n:Leitor)-[r:Conhece]-m
  WHERE n.nome='Pedro' OR m.nome='Vitor'
  RETURN n,r,m
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/lZZxE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lZZxE.png" alt="enter image description here"></a></p>
  
  <p>with my Bacon Path query ->
  <a href="https://i.stack.imgur.com/e9JQm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e9JQm.png" alt="enter image description here"></a></p>