コード例 #1
0
ファイル: BaseGraph.java プロジェクト: sayiho/GraphLab
  private void informVertices() {
    if (isSubgraph) superGraph.informVertices();

    for (VertexType v : this) {
      v.informNewSubgraph();
    }
  }
コード例 #2
0
ファイル: BaseGraph.java プロジェクト: sayiho/GraphLab
 /**
  * Sets the graph as a subgraph.
  *
  * @param b
  */
 public void registerSubgraph(BaseGraph<VertexType, EdgeType> superGraph) {
   isSubgraph = true;
   this.superGraph = superGraph;
   superGraph.informVertices();
 }