问题
I'm using neo4j and I build a large graph that has a lot of subgraph. For example, in the pic below there are 4 subgraphs.
So how can I get 4 groups of nodes by cypher query?
I'm using neo4j 3.0
回答1:
If you want to display all node along with all relationships, you can use a quick and easy cypher query at your disposal. Assuming there are no restrictions applicable to your account:
MATCH (n) RETURN n
来源:https://stackoverflow.com/questions/43337932/how-to-extract-all-subgraph-from-neo4j