Just use github.com/neo4j-contrib/neo4j-graph-algorithms which work via Cypher on a remote connection.
No need for an embedded database. On Thu, Nov 9, 2017 at 6:55 AM, Stephen <soaring1...@gmail.com> wrote: > I want to use graph algorithm APIs such as calculating the shortest path > and community detection. > > GraphDatabaseService graphDb = new > GraphDatabaseFactory().newEmbeddedDatabase( DB_PATH ); > > I do not know how to use it to connect a remote neo4j. > > > 在 2017年11月9日星期四 UTC+8上午11:09:08,Michael Hunger写道: >> >> What do you want to do? >> >> On Thu, Nov 9, 2017 at 3:58 AM, Stephen <soari...@gmail.com> wrote: >> >>> According to Java Reference Documentation, we can use Graph algorithm >>> with embedded neo4j. >>> But we need to connect remote db server to do that. >>> I can connect remote neo4j by rest or neo4j-java-driver, but it does not >>> contains some GraphDatabaseService API . >>> I found there were a project named "neo4j-rest-graphdb", but it can not >>> support neo4j version 3.0 and no longer maintain. >>> >>> So , How to use GraphDatabaseService API with remote neo4j db server? >>> >>> Document link:https://neo4j.com/docs/java-reference/3.2/#tutorials-ja >>> va-embedded-graph-algo >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Neo4j" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to neo4j+un...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.