Hi Lavanya,
Just trying to understand the context a bit better. Are you tring to find citations to bioterms and start to match aliases (which are indirectly linked through citation) based on citation's weight to the bioterm? Can there be more than on...
To avoid cartesian product, you are better to constrain the labels after separately and compare those constraints. so match (vi) where vi:first_label and vi:second_label return vi;
But obviously add the rest of your query around this. there is an a...
no problem, yeah i dont think indexing will help much in this situation as normally helpful for finding the start of your path, but that doesnt seem to be the cost here. Good luck!
yeah thinking about it now, you are really going to struggle as its basically hitting all the relationships from the nodes and then again to filter. have you tried using any of the path APOC's to help? http://neo4j-contrib.github.io/neo4j-apoc-proced...