Saving a graph

21 views
Skip to first unread message

Harshita Jain

unread,
Mar 20, 2018, 2:43:27 PM3/20/18
to Gremlin-users
Hi, 

I created a graph using the gremlin console. 

graph = TinkerGraph.open()

g = graph.traversal()

g.addV('person')



Is there a way to save this graph, so that we can access it at some point later? 

Kelvin Lawrence

unread,
Mar 20, 2018, 4:02:43 PM3/20/18
to Gremlin-users
If you are just using TinkerGraph you can save your graph as a JSON or XML file and read it back later on.

The official documentation covers it  well here
http://tinkerpop.apache.org/docs/current/reference/#_gremlin_i_o

I also have a section on it in the book here

Hope this helps
Cheers
Kelvin
Reply all
Reply to author
Forward
0 new messages