Hi So I'm new to JanusGraph and been following the ThinkerPop3 Tutorials.
So far I've been creating my vertex and edges in my groovy file. Example below:
graph = TinkerGraph.open()
marko = graph.addVertex(T.label, "person", T.id, 1, "name", "marko", "age", 29);
vadas = graph.addVertex(T.label, "person", T.id, 2, "name", "vadas", "age", 27);
lop = graph.addVertex(T.label, "software", T.id, 3, "name", "lop", "lang", "java");
josh = graph.addVertex(T.label, "person", T.id, 4, "name", "josh", "age", 32);
ripple = graph.addVertex(T.label, "software", T.id, 5, "name", "ripple", "lang", "java");
peter = graph.addVertex(T.label, "person", T.id, 6, "name", "peter", "age", 35);
cn.dealmoon = graph.addVertex(T.label, "person", T.id, 14, "name", "dealmoon", "age", 1111);
marko.addEdge("knows", vadas, T.id, 7, "weight", 0.5f);
marko.addEdge("knows", josh, T.id, 8, "weight", 1.0f);
marko.addEdge("created", lop, T.id, 9, "weight", 0.4f);
josh.addEdge("created", ripple, T.id, 10, "weight", 1.0f);
josh.addEdge("created", lop, T.id, 11, "weight", 0.4f);
peter.addEdge("created", lop, T.id, 12, "weight", 0.2f);
...
And I have around 4000 vertexes and 12000 edges, which I don't think it's that big of graph.
Question 1. Am I doing this the right way? If not, what's the most fastest/efficiency way to load the data I want?
Question 2. Is there a way to save the graph I created? So I don't have to load the data and create the graph everytime I open up the gremlin console.
Thx in advance.