sparqlGraphLibrary/src/main/java/com/ge/research/semtk/belmont/NodeGroup.java
public void deleteSubGraph(Node n, ArrayList<Node> stopList) {
		ArrayList<String> sparqlIds = new ArrayList<String>();
		
		// remove nodes
		for (Node subNode : this.getSubGraph(n, stopList)) {
			sparqlIds.addAll(subNode.getSparqlIDList());
			this.removeNode(subNode);
		}
		
		// remove value constraints referencing the removed items
		for (String id : sparqlIds) {
			this.removeValueConstraintsContaining(id);
		}
	}
/**
	 * Delete a subgraph 
	 * @param n - start deleting here
	 * @param excludeNode - don't delete this one or "cross" it to find more nodes
	 */
Delete a subgraph
@param n - start deleting here
@param excludeNode - don't delete this one or "cross" it to find more nodes
Delete a subgraph @param n - start deleting here @param excludeNode - don ' t delete this one or " cross " it to find more nodes
public void deleteSubGraph(Node n, ArrayList<Node> stopList) {
		ArrayList<String> sparqlIds = new ArrayList<String>();
		for (Node subNode : this.getSubGraph(n, stopList)) {
			sparqlIds.addAll(subNode.getSparqlIDList());
			this.removeNode(subNode);
		}
		for (String id : sparqlIds) {
			this.removeValueConstraintsContaining(id);
		}
	}
public void deleteSubGraph ( Node n , ArrayList < Node > stopList ) { ArrayList < String > sparqlIds = new ArrayList < String > ( ) ; for ( Node subNode : this . getSubGraph ( n , stopList ) ) { sparqlIds . addAll ( subNode . getSparqlIDList ( ) ) ; this . removeNode ( subNode ) ; } for ( String id : sparqlIds ) { this . removeValueConstraintsContaining ( id ) ; } }
Delete a subgraph
 @param n - start deleting here
 @param excludeNode - don't delete this one or "cross" it to find more nodes
Delete a subgraph @param n - start deleting here @param excludeNode - don ' t delete this one or " cross " it to find more nodes
// remove nodes // remove value constraints referencing the removed items