Graph 在java中在主存中加载深度为N的图形

Graph 在java中在主存中加载深度为N的图形,graph,orientdb,Graph,Orientdb,如何在java中加载以顶点V为根的整个图形 我有一个veertex V,它是根节点。现在它连接到另一个顶点,intern连接到更多的顶点,以此类推 我想加载整个图形直到深度N 有可能吗 public class GraphLoader{ public void loadGraph(RootID id){ //load here //What will be return type ??Vertex??I mean class of rootNode? }

如何在java中加载以顶点V为根的整个图形

我有一个veertex V,它是根节点。现在它连接到另一个顶点,intern连接到更多的顶点,以此类推

我想加载整个图形直到深度N

有可能吗

public class GraphLoader{

   public void loadGraph(RootID id){
      //load here
      //What will be return type ??Vertex??I mean class of rootNode?
   }

}

1)How can i to it using native libs? <br>
2)How can i do it using ThinkerPop bluprientAPI
公共类GraphLoader{
公共void加载图(RootID){
//在这里装货
//返回类型是什么??顶点??我指的是根节点的类?
}
}
1) 如何使用本机libs访问它
2) 我如何使用ThinkerPop bluprientAPI实现这一点
我不赞成先从顶点获取顶点,然后再获取下一个顶点,这需要很长时间。 我的图表深度约为100,节点数量可能很多,大约(1)个节点