function [pathlinear] = path_linear(n)

% PATH_LINEAR produces an asymmetric proximity matrix of size $n \times n$
% containing all zeros except for ones placed immediately about the
% main-diagonal.  This produces an ordered
% linear path from 1 to 2 to ... to n.
%
% syntax: [pathlinear] = path_linear(n)

pathlinear = zeros(n,n);

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