Thanks.
It works now.
On Sun, May 25, 2014 at 1:11 AM, Michael Hunger <
michael.hun...@neotechnology.com> wrote:
> Try to limit the varlength path, eg
>
> start p=node:nodes(node_id="14697"), h=node:nodes(node_id="106209")
> match path=p<-[:PARENT_OF*..5]-common_ancestor-[:PARENT_OF*..5]->h
> re
Try to limit the varlength path, eg
> start p=node:nodes(node_id="14697"), h=node:nodes(node_id="106209")
> match path=p<-[:PARENT_OF*..5]-common_ancestor-[:PARENT_OF*..5]->h
> return common_ancestor as most_recent_common_ancestor
> order by length(path)
> limit 1
Sent from mobile device
Am 23.0
Eagerly waiting for any kind of help.
On Sat, May 24, 2014 at 1:44 AM, Quazi Marufur Rahman
wrote:
> Hi,
>
> I am trying to access a database having 0.4 M nodes and 0.9 M
> parent->child relationship. However, I want to find common parent of two
> given node using the following query
>
> start p
Hi,
I am trying to access a database having 0.4 M nodes and 0.9 M parent->child
relationship. However, I want to find common parent of two given node using
the following query
start p=node:nodes(node_id="14697"), h=node:nodes(node_id="106209")
match path=p<-[:PARENT_OF*]-common_ancestor-[:PAREN