title: how to find all the longest paths with cypher query?
body: <p>I want to write a cypher query which  finds all the longest paths among nodes which have          relationship with STATUS="on" property with each other,this is what I have done so far:</p>
  
  <pre><code>start n=node(*) 
  match p = n-[r:INCLUDE*..]-&gt;m 
  
  with n,MAX(length(p)) as l 
  match p = n-[r:INCLUDE*..]-&gt;m 
  WHERE all(rel in r 
   where rel.status='on' AND (length(p) = l) )
  return p,l 
  </code></pre>
  
  <p>It returns 3 paths with 1,2 and 3 length,not only the longest path,my query should find only the longest paths,I mean if there are 8 paths which suit to my first where condition ( <code>where rel.status='on'</code>) ,with the length of 1,2,3,3,4,6,6,6 ,only the three paths with the length of 6 should be returned.</p>
  
  <p>what shoud I do?</p>
  
  <p>please guide me,I am new to neo4j,and tried a lot but have not got anything except dizziness,I will be so thankful for your help.</p>