Hi Peter,
using Gremlin or Cypher, you can do more complicated traversals even
with the Neo4j Server, see
http://docs.neo4j.org/chunked/snapshot/cypher-plugin.html and
http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html . While
Cypher support for variable length pathes is coming, in Gremlin, using
Groovy as the underlying scripting engine, you can loop:

g.v(1).out('RELATES_TO').loop(1){true}

where TRUE is the condition for the loop pipe going back to the out
step always is TRUE. See even
https://github.com/tinkerpop/gremlin/wiki/Gremlin-Steps for more
goodies.


Have not tried this with an example graph, let me know if this works.

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 performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Thu, Aug 18, 2011 at 3:52 PM, picklepete <[email protected]> wrote:
> Hey Paddy,
>
> Thanks for the inspiration, I had a scour through the source and website,
> the speed in which you can traverse the graph is incredible!
>
> Jim: I don't suppose you know if/when the REST API will support these
> complex traversals (or END_OF_GRAPH queries)? This unfortunately makes Neo4j
> a no-go for our project until then.
>
> Cheers,
> - Peter
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Depth-and-traversals-in-journey-planner-migration-tp3261892p3264937.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to