Hi, I wrote a python module to handle survex 3d files. https://github.com/speleo3/inkscape-speleo/blob/master/extensions/survex.py Among stuff like iterating over stations or legs it also provides a shortest path search between two stations. Cheers, Thomas