Hi,
The result from a simple query shows three groups of green nodes. Group A is only connected to left blue node, Group B is only connected to the right blue node, and Group C is connected to both.
MATCH p=(c:cpc)-[:Classified_as]-(a:patent{num:9698021})-[:Classified_as]-(n:cpc)-[:Classified_as]-(b:patent{num:7950348})-[:Classified_as]-(x:cpc)
return p
What is the most straightforward way of defining the three group? (Note: the green-green connection for this question)
c variable should contain all nodes connected to the left blue node including those in n
n variable should contain the shared nodes
x variable should contain all connected to the right blue node including those in n.
What I am interested in (think Venn Diagram)
n
(c-n)
(x-n)
Andy