首页 > 解决方案 > 如何在 neo4j 嵌入式应用程序中注册“apoc.algo.dijkstra”?

问题描述

我在我的应用程序中使用 java neo4j 嵌入式版本。

当我db.execute(CypherQuery)用来执行

CALL apoc.algo.dijkstra(m, n, 'IS_CONNECTED', 'cost') YIELD path, weight RETURN path, weight ORDER BY weight limit 1

比我发现的

Caused by: org.neo4j.internal.kernel.api.exceptions.ProcedureException: There is no procedure with the name `apoc.algo.dijkstra` registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.
    at org.neo4j.kernel.impl.proc.ProcedureRegistry.noSuchProcedure(ProcedureRegistry.java:276)

所以我想知道如何为嵌入式 neo4j 注册 apoc jar。

标签: javaneo4jcypher

解决方案


推荐阅读