I have a neo4j database with hundreds of nodes. I want to ask a query to return a graph of a particular pattern.
It returns me all the possible mappings in just one result for the asked query. For example, if there are two possible mappings for a query where the first mapping result has nodes n1,n2,n3 and second mapping result has nodes n2,n4,n5 then it will return me the graph formed by both the mapped pattern combined(i.e n1,n2,n3,n4,n5).
Is there any way that I can see two different graph (n1,n2,n3) and (n2,n4,n5) separated from each other for each individual mapping. Even if n2 is common between them.
Please help me out.