Re: [Neo4j] Dijkstra Algorithm - Access to previous edges

2010-06-24 Thread Mattias Persson
The Dijkstra algorithm tries to find the path between two nodes which have the lowest cost (where cost could be f.ex. a property on each relationship). So that algorithm calculates costs and sums them for each path it tries out. Check out http://en.wikipedia.org/wiki/Dijkstra's_algorithm for more

Re: [Neo4j] Can we commit at regular intervals in batch insert mode

2010-06-24 Thread Mattias Persson
2010/6/23 Suruchi Deodhar deodharsuru...@gmail.com Hi Mattias, Thanks for your answers. Sorry for the confusion wrt the java execution command. I saved CLASSPATH in .bashrc file and ran following command. /usr/java/default/bin/java -Xmx2048M BuildGraph In response to your question Do

Re: [Neo4j] Index Performance(Was: Event framework has landed)

2010-06-24 Thread Mattias Persson
2010/6/23 Atle Prange atle.pra...@gmail.com Hm, i'll have to fix that... Any thoughts on a Trie implementation? Would it be able to compete? I have no idea on performance or what would be the best approach. I though your alphabet-relationship-types approach sounded quite interesting. Or as a

Re: [Neo4j] Index Performance(Was: Event framework has landed)

2010-06-24 Thread Atle Prange
I guess i have to brush the dust of my tree knowledge then... -atle On Thu, 2010-06-24 at 09:43 +0200, Mattias Persson wrote: 2010/6/23 Atle Prange atle.pra...@gmail.com Hm, i'll have to fix that... Any thoughts on a Trie implementation? Would it be able to compete? I have no idea

[Neo4j] Feedback on admin interface

2010-06-24 Thread Jacob Hansson
Hi all! I'm creating a web-based admin interface for Neo4j. Something that can handle configuration, data browsing, backups and so on. I've been hacking on some Neo4j things related to the web previously, for instance the new UI at try.neo4j.org http://try.neo4j.org/http://try.neo4j.org and the

Re: [Neo4j] New tentative API in trunk: Expander/Expansion

2010-06-24 Thread Atle Prange
I agree, lets keep it immutable, then its safe to keep the expander around. Two suggestions: Your could provide a reusable expander: Expander e = Expanders.outgoing().along(FRIEND).and(ENEMY); for(Node n:e.expand(node)){ ... } or a onetime expander: for(Node n :

Re: [Neo4j] New tentative API in trunk: Expander/Expansion

2010-06-24 Thread Craig Taverner
I guess I would have just added a clear() method to the expansion. But of course I understand that using mutable expansions requires that the user actually understand the implications, which goes against the simplicity of the DSL. On Thu, Jun 24, 2010 at 12:23 AM, Tobias Ivarsson