Hi,

Responses from calling the Neo4j APIs are typically lazy, for performance 
reasons. So there's no way of eagerly counting the number of relationships 
unless you force eager evaluation as you've suggested below.

Jim

On 20 Jul 2011, at 11:13, cyuczi eekc wrote:

> Is there a way to get the number of relationships without having to iterate
> through (and count++) them?
> ie. rels=firstNode.getRelationships();
>    rels.size(); //doesn't actually exist
> _______________________________________________
> 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