首页 > 数据库 > > Java TinkerGraph类代码示例
本文整理汇总了Java中com.tinkerpop.blueprints.impls.tg.TinkerGraph类的典型用法代码示例。如果您正苦于以下问题:Java TinkerGraph类的具体用法?Java TinkerGraph怎么用?Java TinkerGraph使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
import com.tinkerpop.blueprints.impls.tg.TinkerGraph; //导入依赖的package包/类
private void exportFunction(Vertex vertex) throws IOException
{
executor.execute(() -> {
Graph graph = orientConnector.getNoTxGraphInstance();
try
{
Vertex functionRoot = graph.getVertex(vertex);
Graph subgraph = new TinkerGraph();
copyFunctionNodes(subgraph, functionRoot);
copyFunctionEdges(subgraph, functionRoot);
subgraph.shutdown();
Path out = Paths.get(outputDirectory.toString(), "func" +
functionRoot.getId().toString().split(":")[1] +
"." + format);
writeGraph(subgraph, out);
} catch (IOException e)
{
e.printStackTrace();
} finally
{
graph.shutdown();
}
});
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26692020/viewspace-3165352/ ,如需转载,请注明出处,否则将追究法律责任。