sparqlGraphLibrary/src/main/java/com/ge/research/semtk/belmont/NodeGroup.java
private void addOrderedSubnodes(Node snode, ArrayList<Node> ret) {
		if(ret.contains(snode)){
			return;
		}
		else{
			ret.add(snode);
			for(NodeItem nItem : snode.getNodeItemList()) {
				
				for (Node n : nItem.getNodeList()) {
					addOrderedSubnodes(n, ret);
				}
			}
		}
	}
/**
	 * Buddy to getOrderedNodes
	 * @param snode
	 * @param ret
	 */
Buddy to getOrderedNodes
@param snode
@param ret
Buddy to getOrderedNodes @param snode @param ret
private void addOrderedSubnodes(Node snode, ArrayList<Node> ret) {
		if(ret.contains(snode)){
			return;
		}
		else{
			ret.add(snode);
			for(NodeItem nItem : snode.getNodeItemList()) {
				for (Node n : nItem.getNodeList()) {
					addOrderedSubnodes(n, ret);
				}
			}
		}
	}
private void addOrderedSubnodes ( Node snode , ArrayList < Node > ret ) { if ( ret . contains ( snode ) ) { return ; } else { ret . add ( snode ) ; for ( NodeItem nItem : snode . getNodeItemList ( ) ) { for ( Node n : nItem . getNodeList ( ) ) { addOrderedSubnodes ( n , ret ) ; } } } }
Buddy to getOrderedNodes
 @param snode
 @param ret
Buddy to getOrderedNodes @param snode @param ret