I'm using Clojure/Ogre to add vertices in Tinkergraph. Since I'm very new to this technologies, I guess that I might have missed something.
Here's what I tried:
(def graph (open-graph {(graph/GRAPH) (.getName org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph)}))
(def g (traversal graph))
(traverse g (add-V :person) (property :name "Dave"))
After these step, when I typed 'graph', I see no vertex added - output is like this:
#object[org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph 0x710f92c7 "tinkergraph[vertices:0 edges:0]"]
I guess very simple step is missed or something, but cannot figure it out.
Thanks a lot for your time. Looking forward for the solution
Thanks so much Stephen! I have one more question, if you don't mind. Following your comment, I added codes as these:
(def dave (traverse g (add-V :person) (property :name "Dave") (iterate!)))
(def josh (traverse g (add-V :person) (property :name "Josh") (iterate!)))
After this, now I want to add an edge between dave and josh. I tried:
(traverse g V (add-E :friends) (from dave) (to ted) (iterate!))
which returns with error. Anything I am missing here again? Thanks in advance!