[Neo] Iterator over Relationships?
okrammarko at gmail.com
Fri Apr 2 23:03:32 CEST 2010
I do this:
Iterate over all the nodes and then for each node iterate over all its outgoing edges. That will touch every edge once and only once.
On Apr 2, 2010, at 2:58 PM, Alex D'Amour wrote:
> Hello all,
> Is there an easy way to create an iterator over all relations stored in a
> database? There's database.getAllNodes().
> Why isn't there a getAllRelationships() method? There appears to have been
> one in the past, but it looks like it's protected now?
> Is there a specific reason why this might be a bad idea? If so, would simply
> iterating over the nodes, and getting edges that way be substantially faster
> despite touching each edge twice?
> Neo mailing list
> User at lists.neo4j.org
More information about the User