How to extract all subgraph from neo4j

流过昼夜 提交于 2019-12-12 04:30:52

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!