public void setDistance( TextDistanceStrategy distance ) {
		if( distance == null ) {
			throw new IllegalArgumentException( "distance must not be null" );
		}
		this.distance = distance;
		regraph();
	}