function T = cycgraph(n) T = zeros(n); for i=2:n T(i,i-1) = 1; end T(n,1) = 1; T = T + T'; return