This function computes modified Grafen edge lengths in which the length of the edge is determined not by the number of desecendant leaves, but instead by the maximum number of node lengths in the path from the node to any leaf.
node.paths is used internally by modified.Grafen and computes the set of paths from a node to all tips descended from that node.