sparqlGraphLibrary/src/main/java/com/ge/research/semtk/belmont/NodeGroup.java
public static NodeGroup deepCopy(NodeGroup nodegroup) throws Exception  {
		NodeGroup copy = new NodeGroup();
		copy.addJsonEncodedNodeGroup(nodegroup.toJson());
		
		// connection
		if (nodegroup.conn != null) {
			SparqlConnection conn = new SparqlConnection();
			conn.fromJson(nodegroup.conn.toJson());
			copy.setSparqlConnection(conn);
		}
		
		// oInfo is a pointer.  It is the state of the nodegroup but not actually deep copied.
		copy.oInfo = nodegroup.oInfo;
		
		return copy;
	}
/**
	 * Use JSON fuctionality to implement deepCopy
	 * @param nodegroup
	 * @return a deep copy
	 * @throws Exception 
	 * @
	 */
Use JSON fuctionality to implement deepCopy
@param nodegroup
@return a deep copy
@throws Exception
.
Use JSON fuctionality to implement deepCopy @param nodegroup @return a deep copy @throws Exception .
public static NodeGroup deepCopy(NodeGroup nodegroup) throws Exception  {
		NodeGroup copy = new NodeGroup();
		copy.addJsonEncodedNodeGroup(nodegroup.toJson());
		if (nodegroup.conn != null) {
			SparqlConnection conn = new SparqlConnection();
			conn.fromJson(nodegroup.conn.toJson());
			copy.setSparqlConnection(conn);
		}
		copy.oInfo = nodegroup.oInfo;
		return copy;
	}
public static NodeGroup deepCopy ( NodeGroup nodegroup ) throws Exception { NodeGroup copy = new NodeGroup ( ) ; copy . addJsonEncodedNodeGroup ( nodegroup . toJson ( ) ) ; if ( nodegroup . conn != null ) { SparqlConnection conn = new SparqlConnection ( ) ; conn . fromJson ( nodegroup . conn . toJson ( ) ) ; copy . setSparqlConnection ( conn ) ; } copy . oInfo = nodegroup . oInfo ; return copy ; }
Use JSON fuctionality to implement deepCopy
 @param nodegroup
 @return a deep copy
 @throws Exception
 @
Use JSON fuctionality to implement deepCopy @param nodegroup @return a deep copy @throws Exception @
// connection // oInfo is a pointer.  It is the state of the nodegroup but not actually deep copied.