match p=shortestPath((a:Person {id:123})-[:KNOWS]-(b:Person {id:124})
with p
order by length(p) desc
limit 1
return [n in nodes(p) | n.name] as names
> Am 07.05.2015 um 10:53 schrieb FERHAT Ilyes <[email protected]>:
>
> Thanks..... And what about the longest path?! I mean, I want just to return
> the names of the nodes?!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.