如何从neo4j提取所有子图 [英] How to extract all subgraph from neo4j

查看:796
本文介绍了如何从neo4j提取所有子图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用neo4j,并且构建了一个包含很多子图的大型图.例如,在下面的图片中有4个子图.

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.

那么如何通过密码查询获得4组节点?

So how can I get 4 groups of nodes by cypher query?

我正在使用neo4j 3.0

I'm using neo4j 3.0

推荐答案

如果要显示所有节点以及所有关系,可以使用快速简便的密码查询.假设没有适用于您帐户的限制:

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

这篇关于如何从neo4j提取所有子图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆