ods
ods copied to clipboard
length is never defined
The length of a path is never defined (it's the number of edges not the number of vertices in the path).