如何在neo4j嵌入式应用程序中注册“ apoc.algo.dijkstra”?

时间:2019-02-09 16:08:10

标签: java neo4j cypher

我在我的应用程序中使用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。

0 个答案:

没有答案