欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

JanusGraph·Java写数据

程序员文章站 2024-01-19 13:38:58
...

     

  JanusGraph graph = JanusGraphFactory.build().set("storage.backend", "inmemory").set("storage.hostname", "10.158.69.75").open();
 JanusGraphManagement mgmt = graph.openManagement();
 VertexLabel vertexLabel = mgmt.makeVertexLabel(label).make();
 mgmt.makeEdgeLabel(label).make();
 Vertex v1 = graph.addVertex(type);
 ....
 graph.tx().commit();

 

相关标签: JanusGraph