How can we modify the cypher query so that it can give all the connected graphs (means the set of nodes and relationships that are connected to each other directly or indirectly) as a result for the query.
OR
Can I use traversal framework for my requirement?
The use case is: I need to get all the connected graphs from neo4j and store their information as an "cluster" in other database.1 group of connected graph = 1 cluster. I need to separate the connected graphs and then store the aggregate of some of the properties of nodes/relations and store it in other db.
I am using REST to interact with neo4j db.