Re: [Neo4j] Cypher results without repeated sub-paths

2016-08-20 Thread 'Michael Hunger' via Neo4j
Jaroslav, you could use shortestPath or allShortestPaths right now you do an expand over everything. There is also an expandPath procedure in apoc that could be helpful for you: https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_expand_paths Michael On Mon, Aug 8, 2016 at 12:59 PM, Alan

Re: [Neo4j] Cypher results without repeated sub-paths

2016-08-08 Thread Alan Robertson
Hi Jaroslav, Although I need more sleep at the moment - your problem seems to have similar issues to my question about a "query which returns a subgraph" problem which I've been looking at... The problem I have with the * operator is that it can is *very* slow. You also complain that it does

[Neo4j] Cypher results without repeated sub-paths

2016-08-08 Thread Jaroslav Ramba
Hi, I have graph of flights. I want find all flights between two airports without cycles. How can I clean/disable result of cycles = repeated sub-paths A-->B-->A-->B. OK *A-->B-->A* NOT OK *A-->B-->A-->B* MATCH path=(source:Airport)-[flights:FLIGHT*]->(destination:Airport) Thank you for