Neo4j:弱连接组件WCC,仅在内存图中保留大型网络

问题描述

我运行Neo4J WCC算法来查看数据之间的连接方式。

我的数据如下:

enter image description here

我这样做是为了投影图:

load_graph = """ CALL gds.graph.create('lpa_test_2','*','APPEARS_IN');"""
run_query(load_graph)

我得到以下结果:

enter image description here

我想在内存图中保留大型网络(大小为1670)。

我尝试过这个:

CALL gds.graph.create.cypher(
'myGraph_14','MATCH (n) WHERE n.familyComponent = 0 RETURN id(n) as id','MATCH (a:Article)<-[:APPEARS_IN]-(b:keyword)-[:APPEARS_IN]->(c:Article) RETURN id(a) AS source,id(c) AS target')
YIELD graphName,nodeCount,relationshipCount,createMillis;

我有所有节点,但没有关系:

enter image description here

在大型网络中拥有所有关系该怎么办? 知道数据库有两种类型的节点和一种关系类型。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...