i have this query that outputs what is in the attached picture. I will connect the two "Generalization" nodes (green ones) but i want to add a "strenght" property to the new relationship with the number of connections between the "Perception_Group" nodes (yellow ones). So in this case i would have strenght=4. How can i count the relationships between the yellow nodes?
WHERE g1 <> g2