Changeset [10a2c88163172da15d20acc59682aa9e5591796a] by Andreas Ronge

April 14th, 2011 @ 09:11 PM

modified the traverser to allow iterating over paths and relationships not just over end_nodes [#161 state:resolved]

Paths (will yield Java neo4j paths objects):
node.outgoing(:friends).outgoing(:knows).depth(:all).paths.each ...

Relationships (will yield Java Neo4j Relationship objects): node.outgoing(:friends).outgoing(:knows).depth(:all).rels.each ...

Nodes: node.outgoing(:friends).outgoing(:knows).depth(:all).each ...

Committed by Andreas Ronge

  • M lib/neo4j/traversal/traverser.rb
  • M spec/rails/relationship_spec.rb
  • M spec/traversal/traversal_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Neo4j.rb is a graph database framework for JRuby.

It provides:

* Mapping of ruby objects to nodes in networks rather than in tables.
* Storage of ruby object to a file system.
* Fast traversal of relationships between nodes in a hugh node space.
* Transaction with rollbacks support.
* Indexing and quering of ruby objects.
* Integration with Rails