function dp = dpath(T,i,j) % T is a directed tree % all edges (i,j) are of the form i size(T,1) 'runaway loop' keyboard end end return