Saturday 29 January 2022

Gremlin: Enable tinkergraph plugin

You can enable tinkergraph plugin by executing below command.

:plugin use tinkerpop.tinkergraph

gremlin> :plugin use tinkerpop.tinkergraph
==>tinkerpop.tinkergraph activated
gremlin>

Once tinkergraph plugin is enabled, you can create a graph instance and work with it.

gremlin> graph = TinkerGraph.open()
==>tinkergraph[vertices:0 edges:0]
gremlin>
gremlin> g = graph.traversal()
==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
gremlin>

 

 

 

Previous                                                 Next                                                 Home

No comments:

Post a Comment