Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Neo4j 3.0.1和SDN 4.1.1.发布路径查找_Neo4j_Cypher_Spring Data Neo4j_Spring Data Neo4j 4_Neo4j Ogm - Fatal编程技术网

Neo4j 3.0.1和SDN 4.1.1.发布路径查找

Neo4j 3.0.1和SDN 4.1.1.发布路径查找,neo4j,cypher,spring-data-neo4j,spring-data-neo4j-4,neo4j-ogm,Neo4j,Cypher,Spring Data Neo4j,Spring Data Neo4j 4,Neo4j Ogm,我有两个决策节点-父节点和子节点 我实现了以下方法,该方法返回这些节点之间的路径 @Query("MATCH path=(d:Decision)<-[:CONTAINS*]-(ancestorD:Decision) WHERE id(d) = {decisionId} AND id(ancestorD) = {ancestorDecisionId} RETURN path LIMIT {limit}") List<Path> findPathsFromDecisionToAnc

我有两个决策节点-父节点和子节点

我实现了以下方法,该方法返回这些节点之间的路径

@Query("MATCH path=(d:Decision)<-[:CONTAINS*]-(ancestorD:Decision) WHERE id(d) = {decisionId} AND id(ancestorD) = {ancestorDecisionId} RETURN path LIMIT {limit}")
List<Path> findPathsFromDecisionToAncestorDecision(@Param("decisionId") Long decisionId, @Param("ancestorDecisionId") Long ancestorDecisionId, @Param("limit") Integer limit);

@Query(“MATCH path=(d:Decision)在SDN 4中没有
路径的概念,只是通过关系引用其他节点的水合节点


这里的选项是返回节点和关系并遍历对象图(请参见示例),或者,如果需要严格的路径,请使用底层GraphDatabaseService(如果使用嵌入式驱动程序,则可用)处理原始节点和关系。

在SDN4中没有路径的概念,只是通过关系引用其他节点的水合节点

这里的选项是返回节点和关系并遍历对象图(请参见示例),或者,如果需要严格的路径,则使用基础GraphDatabaseService(如果使用嵌入式驱动程序,则可用)并处理原始节点和关系