示例#1
0
  private void informVertices() {
    if (isSubgraph) superGraph.informVertices();

    for (VertexType v : this) {
      v.informNewSubgraph();
    }
  }
示例#2
0
 /**
  * Sets the graph as a subgraph.
  *
  * @param b
  */
 public void registerSubgraph(BaseGraph<VertexType, EdgeType> superGraph) {
   isSubgraph = true;
   this.superGraph = superGraph;
   superGraph.informVertices();
 }