java - 如何在java中加载以顶点V为根的整个图?
我有一个 veertex V,它是根节点。现在它连接到其他一些顶点,实习生连接到更多顶点等等。
我想加载整个图直到深度 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
我不赞成从顶点获取顶点然后获取下一个然后下一个。这将需要很长时间。我的图表深度约为 100,节点数可能很多