title: Find the distance in a path between each node and the last node of the path
body: <p>I am very new to Cypher and I need help to solve a problem I am facing..
  In my graph I have a path represeting a data stream and I need to know, for each node in the path, the distance from the last node of the path.
  For example if i have the following path:</p>
  
  <p>(a)->(b)->(c)->(d)</p>
  
  <p>the distance must be 3 for a, 2 for b, 1 for c and 0 for d.
  Is there an efficient way to obtain this result in Cypher?
  Thanks a lot!</p>
  
  <p>Mauro</p>