Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Peter Neubauer
Linan, yes, deep down Pipes are composing the pipeline out of iterators to the base API operations node.getRelationships() and relationship.getNodes() . The Neo4j traversal API is using callbacks instead. What you want to use depends on your taste :) Cheers, /peter neubauer GTalk:      neubauer.

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Linan Wang
Actually i'm fine with nesting multiple traversers to solve the problem if deep inside gremlin, evaluator and fluentPipeline are just nice constructs over the same solution. is it correct? thanks On Fri, Sep 9, 2011 at 7:03 PM, Linan Wang wrote: > Thanks! I really appreciate. i'll have a deeper l

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Linan Wang
Thanks! I really appreciate. i'll have a deeper look at the FluentPipeline and Gremlin options later. Regarding using Evaluator in https://github.com/neo4j/community/blob/master/embedded-examples/src/test/java/org/neo4j/examples/orderedpath/OrderedPathTest.java my question: When the Evaluator.eval

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Peter Neubauer
That's right! Looking all forward to that! Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer http://www.neo4j.org               - Your high perfor

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Marko Rodriguez
Hey, > Hi Linan, > http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-traversal.html#_new_traversal_framework > has an example of an ordered path, does that help? The code for it is > at > https://github.com/neo4j/community/blob/master/embedded-examples/src/test/java/org/neo4j/example

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Peter Neubauer
Hi Linan, http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-traversal.html#_new_traversal_framework has an example of an ordered path, does that help? The code for it is at https://github.com/neo4j/community/blob/master/embedded-examples/src/test/java/org/neo4j/examples/orderedpath/Or

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Marko Rodriguez
Hi, I would do this using Gremlin as such: g.v(1).out('read').in('wrote').uniqueObject.out('pet').name If you are vertex 1 (g.v(1)), then you will go to the books you read, then to the authors of those books, then because you might have read two Stephen King boo

[Neo4j] chain TraversalDescription?

2011-09-09 Thread Linan Wang
Hi, say people read books, books are written by authors, authors has dogs, then how to reach the dogs of authors of books i've read? when i'm also a writer, also have dogs, the TraversalDescription seems inefficient since it'll also traverse my own books and dogs first, before my customised StopEv