function nn_plot(L,bnd);

%NN_PLOT plots nearest neighbors for every centroid wrt a given
%boundary file, bnd.

poly_plot(bnd); hold on;

OUT = neighbors(L,1);

L_nn = OUT(:,2:3);

n = size(L,1);

LL = .2*L +.8*L_nn;

for i = 1:n    
      
    x = [L(i,1) LL(i,1)];
    
    y = [L(i,2) LL(i,2)];
    
    plot(x,y,'r-','LineWidth',2); 
    
    hold on;
    
end

x = L(:,1); 

y = L(:,2);

plot(x,y,'.','MarkerSize',20); hold on; 

title('NEAREST NEIGHBORS (Lines point to N-Neighbors)', 'FontWeight','Bold','FontSize',12);


