The Relative Main Line algorithm works with relative distances.
For the main line, its length and the distance between the nodes along it are quite respected. But, since the nodes along the other lines and branches are projected on this main line, the distance for those nodes on the resulting straight lines/branches can�??t be real distances; these distances are relative.