版权声明:如果觉得本文对您有用或写得好,还请往左边点个赞哦~~~如有错误欢迎指出哦 https://blog.csdn.net/wzwdcld/article/details/82024703
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();