NodeOrder function

Number of edges incident to each node in a tree