def path_end_to_end_distance(neurite):
trunk = neurite.root_node.points[<NUM_LIT:0>]<EOL>return max(morphmath.point_dist(l.points[-<NUM_LIT:1>], trunk)<EOL>for l in neurite.root_node.ileaf())<EOL>
Calculate and return end-to-end-distance of a given neurite.