[Neo4j] Re: py2neo 1.6.4 breaks my code again...

2014-03-23 Thread Nigel Small
I am unfamiliar with Docker but a cursory glance at the project suggests that it may impose environmental conditions that were not anticipated when I wrote py2neo. I would be happy to review a pull request with any fixes you are able to provide for this setup. Nigel On 23 March 2014 05:43, Alan

[Neo4j] Re: Shortest Path Algoritm with cost?

2014-03-23 Thread Antonio Grimaldi
Nobody can help me? -- 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 neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.

Re: [Neo4j] Shortest Path Algoritm with cost?

2014-03-23 Thread Michael Hunger
You can use findAllPaths with dijkstra too, and then just pull the first 3 paths from the iterator. Or why do you want to use shortestPath instead? Dijsktra is calculating the shortest path based on your costProperty. Am 21.03.2014 um 17:26 schrieb Antonio Grimaldi

Re: [Neo4j] On relative performance of native querying in Java vs. Cypher querying.

2014-03-23 Thread Michael Hunger
Happy I could help. Please consider blogging about it after you worked out your solution. And don't hesitate to come back with other questions. Cheers, Michael Am 20.03.2014 um 11:36 schrieb costas.bar...@gmail.com: Dear Michael, Thank you for your detailed response and the multiple

[Neo4j] find difference between 2 collection of paths

2014-03-23 Thread [:Koen]
Hi, i wonder how to solve the following using cypher 1) using a match i find all paths for a certain relstype (REL1) between all nodes of certain labeltypes (LABEL1 and LABEL2).. for example match rel1paths=(n:LABEL1)-[:REL1*]-(m:LABEL2) lets assume this gives me in total 4 paths 2) now i

[Neo4j] Re: Shortest Path Algoritm with cost?

2014-03-23 Thread Antonio Grimaldi
Hi Michael, thanks for your answer. I tried to use WeightedPath path = dijkstraPath.findAllPaths(startNode, endNode); But always one path is returned, except when there are two or more paths with the same cost. Instead i would like to found the firts 3 alternative path, with different cost.

[Neo4j] Re: find difference between 2 collection of paths

2014-03-23 Thread Tom Zeppenfeldt
as an idea , not tested.. match p=(n)-[:REL1*]-(m) where NOT n-[:REL2*]-m return n,m or return p -- 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

Re: [Neo4j] Re: find difference between 2 collection of paths

2014-03-23 Thread Koen Kleingeld
hi thx, that one works (just tested it) : match p=(n:label1)-[:REL1*]-(m:label2) where NOT (n)-[:REL2*]-(m) return p any other syntax ideas ? ps .. i was thing far more complex withdual match ... with to pass data to the secondary match ... and some functions to compare the 2 sets ...

Re: [Neo4j] Re: find difference between 2 collection of paths

2014-03-23 Thread Tom Zeppenfeldt
hard to say without any idea about the far more complex stuff you're trying to achieve, and the comparisons you'd like to do .. -- 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

Re: [Neo4j] Re: find difference between 2 collection of paths

2014-03-23 Thread Koen Kleingeld
hi, sure.. actually i would like to build a kind of report that reflects the amount of paths found for a specific relstype (REL1) between each 2 nodes (actully this means duplicate paths if more than 1 found) , their length, the shortest based on weight, and whether there is at least also one

Re: [Neo4j] find difference between 2 collection of paths

2014-03-23 Thread Michael Hunger
I agree with Tom, but if you really want to do it: You could do: match p=(n:label1)-[:REL1*]-(m:label2) with collect([n,m]) as start_end match p=(n:label1)-[:REL2*]-(m:label2) where [n,m] not in start_end return p if you want to compare collections match p=(n:label1)-[:REL1*]-(m:label2)