function(root, path)
	{
		var parent = root;
		
		if (path != null)
		{
			var tokens = path.split(mxCellPath.PATH_SEPARATOR);
			
			for (var i=0; i<tokens.length; i++)
			{
				parent = parent.getChildAt(parseInt(tokens[i]));
			}
		}
		
		return parent;
	}
function(root, path)
	{
		var parent = root;
		
		if (path != null)
		{
			var tokens = path.split(mxCellPath.PATH_SEPARATOR);
			
			for (var i=0; i<tokens.length; i++)
			{
				parent = parent.getChildAt(parseInt(tokens[i]));
			}
		}
		
		return parent;
	}
function ( root , path ) { var parent = root ; if ( path != null ) { var tokens = path . split ( mxCellPath . PATH_SEPARATOR ) ; for ( var i = 0 ; i < tokens . length ; i ++ ) { parent = parent . getChildAt ( parseInt ( tokens [ i ] ) ) ; } } return parent ; }
Function: resolve

Returns the cell for the specified cell path using the given root as the
root of the path.

Parameters:

root - Root cell of the path to be resolved.
path - String that defines the path.
Function : resolve
Returns the parent of the given path