I learned to use neo4j , but got a little confused about its use. When I add nodes and relationships, I can do it like this:
GraphDatabaseService graphDb = new EmbeddedGraphDatabase("C:/temp/graphdb");
Transaction tx = graphDb.beginTx();
try {
org.neo4j.graphdb.Node node = graphDb.createNode();
...
I could also do it like this:
NeoService neoService = new EmbeddedNeo("C:/temp/graphdb");
Transaction tx = neoService.beginTx();
try {
org.neo4j.api.core.Node node = neoService.createNode();
...
What is the difference? Which one should I use? Why do they have two different mechanisms? Is this just an evolution of the API here? :) I want to use the MetaModel API and it needs a NeoService, so the choice is clear there, I think.
source
share