Optional node aggregation

Viewed 113

In a graph db, how do I count the number of times user has contributed to the node "comment" directly or indirectly. In the diagram below, the answer is 2 (1 direct, 1 indirect)

Diagram

3 Answers
Related