thanks Michael
that's a very nifty cypher alright, but it doesn't do what I want ;)
It collects all the relationships for all nodes and then counts the number of each type. I want the counts of each type for each individual node.
This is what I've got working in the meantime:
start n=node(*)
match n-[r1?:REL1]->(), n-[r2?:REL2]->()
return n, count(r1) as REL1, count(r2) as REL2
+------------------------------------------------------------------+
+------------------------------------------------------------------+
+------------------------------------------------------------------+
and this seems to work just fine.
I've noticed there are stats for cypher queries on the scala side- is there any progress on exposing them to java-side? It would be a great help to improve our cypher queries...
thanks,