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