public void populateRelations(GraphModel subview){
  Set<GraphNode> subviewNodes=subview.getNodesSet();
  GraphBuilder builder=subview.getBuilder();
  for (  GraphEdge edge : getEdges()) {
    if (subviewNodes.contains(edge.getHead()) && subviewNodes.contains(edge.getTail())) {
      builder.addEdge(edge);
    }
  }
}

public void populateRelations ( GraphModel subview ) { Set < GraphNode > subviewNodes = subview . getNodesSet ( ) ; GraphBuilder builder = subview . getBuilder ( ) ; for ( GraphEdge edge : getEdges ( ) ) { if ( subviewNodes . contains ( edge . getHead ( ) ) && subviewNodes . contains ( edge . getTail ( ) ) ) { builder . addEdge ( edge ) ; } } }
populate the subview with every edge in this graph .
