On Wed, Nov 9, 2011 at 9:28 AM, Hans Birkeland <han...@funcom.com> wrote:

> Thanks for the quick reply! :)
>
> This is the query: start n=node(159178) match n-[*1..4]->x return count(*)


Good to know.

The reason you are getting duplicates is because you'll get the same node
in x multiple time - there might be a lot of paths from n to that
particular node. If you are interested in how many nodes can be reached
with that query, you should instead do: RETURN COUNT(DISTINCT x)

This query is even heavier than the original, though... :)

Andrés
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to