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/examples/orderedpath/OrderedPathTest.java
>
> Also, Gremlin, as Marko states, is applicable here.
One more point to this. The next release of the Pipes comes with FluentPipeline
which will allow you to, in native Java, do this:
Pipe<Vertex,String> pipe = new
FluentPipeline(graph.getVertex(1)).out("read").in("wrote").uniqueObject().out("pet").property("name");
while(pipe.hasNext()) {
String petName = pipe.next();
}
In this way, you can effect the same "Gremlin-esque" behavior, but in pure Java.
This is planned for a September 21st released and, if all goes well, will be in
the next release of Neo4j.
Take care,
Marko.
http://markorodriguez.com
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user