versae/neo4j-rest-client — Issue #55: More closely approximate traversals in the embedded driver
Author: aventurella
Created: 2012-02-19 21:17:29+00:00
State: open

https://gist.github.com/1865786

http://docs.neo4j.org/chunked/milestone/python-embedded-reference-traversal.html#_basic_traversals

Currently this uses the neo4j-rest-client request object and it's Node, Relationship, Path and Iterable classes.
It does not require an initialized GraphDatabase object in order to extend Traversal.

I did not integrate it fully into the source and send a pull reuest as it would require altering client.py a smidge. I didn't want to do all of that work and have it rejected. =)

If this is something you are interested in, I can implement it into the source and send a pull. Right now the DB connection string is hard coded in traversal.py, this would be solved by providing a method to GraphDatabase: traversal() (which would align to the embedded driver) At this point the TraversalDescription could be initialized with users connection path. Also, I would externalize the connection string into the options or someplace similar so that a subclass of the Traversal class could access that as well.

Anyway, lemme know.