Xavier Shay wrote:
>
> "For all nodes in a particular index, how many other nodes are they
> connected to at depth X?"
>
Marko will be able to improve upon this, but try something like this (this
is untested)...
m = [:]
depth = 10
index_name = "vertices"
index_key = "name"
index_nodes = g.idx(index_name).get(index_key,Neo4jTokens.QUERY_HEADER +
"*").
index_nodes._().both.groupCount(m).loop(2){it.loops < depth}
m.size()
- James
--
View this message in context:
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Aggregate-queries-tp3317720p3317876.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user