有没有一种方法可以访问neo4j GDS中图目录中的特定节点和关系数据?

问题描述 投票:0回答:1

在Neo4j图数据科学(GDS)中,每个图都可以有相应的投影。如何获取有关特定投影中存储的实际节点和关系的详细信息?有没有一种方法可以访问投影中的特定节点和关系数据?

对于特定的图形目录投影

graph_0
,我可以使用
CALL gds.graph.list('graph_0')
来检索有关投影的基本信息,例如节点数和关系。但是,没有列出有关节点和关系的详细信息。

neo4j cypher graph-databases graph-data-science
1个回答
0
投票

您可以通过返回额外的详细信息(如

schemaWithOrientation
)来获取有关特定本机命名图的扩展信息。例如,
schemaWithOrientation
返回投影图中包含的节点标签、关系类型、关系方向和属性。您可以在此处参考完整列表:https://neo4j.com/docs/graph-data-science/current/graph-list/

示例:

CALL gds.graph.list('personsNative')
YIELD graphName, schemaWithOrientation, configuration
RETURN graphName, schemaWithOrientation, configuration.nodeProjection AS nodeProjection
© www.soinside.com 2019 - 2024. All rights reserved.