You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Count two-hop patterns grouped by a node from degrees #136
RETURN count(*) over two hops is counted from node degrees, but a grouped count is counted that way in one shape only. #113 handles RETURN m.name, count(x) over (x)-[:R]-(m)...: it counts the first hop per m in place, but the rest of the pattern still emits one row per match. Other groupings keep the join plan and build every path:
by the root of a two-hop pattern: MATCH (a)-[:R]->(b)-[:S]->(c) RETURN a.id, count(*);
by the middle node, RETURN b.id, count(*), which counts only the first hop per b, and only with the CSR.
Idea
Grouped by the middle node:n1(b) × n2(b) per b, the two-hop count without its final sum.
Activity