function [pathcircular] = path_circle(n)

% PATH_CIRCLE produces an asymmetric proximity matrix of size $n \times n$
% containing all zeros except for ones placed immediately about the
% main-diagonal and at the (1,n) position.  This produces an ordered
% circular path from 1 to 2 to ... to n and back to 1.
%
% syntax: [pathcircular] = path_circle(n)

pathcircular = zeros(n,n);

for i = 1:(n-1)
    
    pathcircular(i,i+1) = 1;
    
end

pathcircular(1,n) = 1;
