function sig = lexordtree(T) % T is a directed tree % all edges (i,j) are of the form i