[Neo4j] [Neo4j graph-algo] AStar getCost function.

2011-09-10 Thread Rafal Wasielewski
I've implemented model with routing with OpenStreetMap data and all is okay but i have to change one more thing. My graph has on each node with turn restriction information about where i can't drive so it's from rel, to rel and via node like in osm. All data all properly constructed.

Re: [Neo4j] Gremlin pipes broken in 1.5

2011-09-10 Thread Xavier Shay
On Fri, Sep 9, 2011 at 1:16 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Xavier, this can well be a packaging problem. Could you try with 1.5.M01? The dependency problem is fixed, but we are fighting for the build pipeline to deliver a new snapshot of the final artifact. ah

Re: [Neo4j] performance guide

2011-09-10 Thread Linan Wang
Andreas, thanks. can't wait for your result. one correction on my list: Retrieve a certain types of relationships of a node should be faster than retrieve all. i mis-read the source code in NodeImpl.java, in which private volatile RelIdArray[] relationships is an array of array. the updated list:

Re: [Neo4j] Aggregate queries

2011-09-10 Thread Xavier Shay
Reporting back, I came up with the following query that does what I need: m = [:]; g.idx(user).get(key, %query%*)._()[0..5].sideEffect { x = it.key }.out.in.uniqueObject.loop(3) { it.loops 2 }.sideEffect { if (!m[x]) { m[x] = 0; }; m[x]++ } -1; m; * I didn't use mapWithDefault because I'm

Re: [Neo4j] Aggregate queries

2011-09-10 Thread Marko Rodriguez
Hey, m = [:]; g.idx(user).get(key, %query%*)._()[0..5].sideEffect { x = it.key }.out.in.uniqueObject.loop(3) { it.loops 2 }.sideEffect { if (!m[x]) { m[x] = 0; }; m[x]++ } -1; m; Tips: 1. do g.idx(user).get(key, %query%*)[0..5] - _() is not needed. 2.

[Neo4j] multiple servers on Mac

2011-09-10 Thread Gengo Suzuki
I'm trying to use multiple Neo4j servers on one Mac. But it doesn't work well. I created two neo4j folders, and I wrote configuration files, neo4j-wrapper.conf and neo4j-server.properties, which are same as manual 5.1.4. One server works well, but... If I execute neo4j install, system says

Re: [Neo4j] multiple servers on Mac

2011-09-10 Thread Andreas Kollegger
Have you changed the port numbers used by each server? If running multiple instance on the same server, you'll need to make each port unique. In neo4j-server.properies, check: org.neo4j.server.webserver.port=7474 Best, Andreas On Sep 10, 2011, at 7:22 PM, Gengo Suzuki wrote: I'm trying to

Re: [Neo4j] multiple servers on Mac

2011-09-10 Thread Andreas Kollegger
Ah, sorry Gengo, I wasn't reading carefully. At the moment, the install procedure isn't clever enough to accommodate multiple instances running on the same machine. After making the appropriate configuration file changes, you'll also need to differentiate the launchd plists which are created.

Re: [Neo4j] except CypherParser have any other methods for paging query ?

2011-09-10 Thread iamyuanlong
aha I have usered this method. And i have changed the source code of QueryContext . so that I can query for paging.But I can't sorting by the properties of the UserNode. Even i can put some fixed property into the relationindex. -- View this message in context:

Re: [Neo4j] multiple servers on Mac

2011-09-10 Thread Andreas Kollegger
Hi Gengo, I've modified the neo4j start script and the launchd plist template to support installing multiple servers on Mac OSX. Would you be interested in trying the patch? I've attached it for your consideration. Just expand the archive into each of your neo4j install folders. The tarball

Re: [Neo4j] multiple servers on Mac

2011-09-10 Thread Gengo Suzuki
Hello Andreas, Thank you very much for rapid response. I want to try your script, so please send me by e-mail or tell me the place of files. -- Gengo Suzuki On Sun, Sep 11, 2011 at 12:41 PM, Andreas Kollegger andreas.kolleg...@neotechnology.com wrote: Hi Gengo, I've modified the neo4j start

Re: [Neo4j] except CypherParser have any other methods for paging query ?

2011-09-10 Thread iamyuanlong
Webbench is a tool for concurrent test . More detail here:http://www.oschina.net/p/webbench If i don't need to sort the results. Get the first 10 results ,it will be faster if i use Traversals.But in fact,I need sort the results.I notes that you mentioned something about SortedTree.I can't find it

Re: [Neo4j] multiple servers on Mac

2011-09-10 Thread Andreas Kollegger
Hello Gengo, The mailing list must've removed the attachment from my email. Try the download from here - http://ge.tt/8Jfkvd7?c Cheers, Andreas On Sep 10, 2011, at 8:52 PM, Gengo Suzuki wrote: Hello Andreas, Thank you very much for rapid response. I want to try your script, so please

Re: [Neo4j] except CypherParser have any other methods for paging query ?

2011-09-10 Thread iamyuanlong
In fact I have been sent to do research about neo4j.One of my partner do research about mongodb. I use Neo4j finished all demands of our project,which some like twitter (We call 微博 Weibo) about Stock.I use neo4j to store the relation between users.I now most concerned about performance. The graph

[Neo4j] Server Starting Error

2011-09-10 Thread Reza Ameri
Hi, I was trying to install and start Neo4j 1.41 on my Vista 32bit System, it is installed but not starts! The error is [SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion. Any Idea? It is right that I work on it slowly but the fact is as

Re: [Neo4j] except CypherParser have any other methods for paging query ?

2011-09-10 Thread Andreas Kollegger
Hi, Neo4j should be perfect for that use. Do you have a specific traversal that is causing a performance concern? Cheers, Andreas On Sep 10, 2011, at 9:27 PM, iamyuanlong wrote: In fact I have been sent to do research about neo4j.One of my partner do research about mongodb. I use Neo4j