private boolean isPathValid()
	{
		boolean valid = true;
		for ( int i=0;i<path.length-1;i++ )
		{
			if ( path[i].to == null 
				|| path[i+1].from == null 
				|| path[i].to.nodeId != path[i+1].from.nodeId )
			{
				valid = false;
				break;
			}
		}
		return valid;
	}