Hi Alex,

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.

Take care,
Marko.

http://markorodriguez.com

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?
> 
> Thanks,
> Alex
> _______________________________________________
> Neo mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to