I am trying to get the "transversal deviation" of a Euclidean geodesic path in a random geometric graph embedded in a rectangle. An example is shown below, with the path in red joining the two green vertices.

The code below simply draws NearNeighbourGraph, setting the option to add edges between the uniformly random points when they are within a unit distance, followed by SetProperty to add edge weights i.e. their Euclidean distance, and then FindShortestPath to find the multi-hop path of least weight between two nodes at fixed distance (the final two elements of v). The max. deviation of the path from the horizontal is then the max of the $y$-components of the vertices on this path.

The difficulty I'm having is that for large graphs, for example where the least-weight path is many "hops" long, this is taking too long to get reliable data on the average deviation, which is hypothesised (in the field of "first passage percolation") to be a power law in the Euclidean separation of the endpoints of the path.

Mathematica is a registered trademark of Wolfram Research, Inc. While the mark is used herein with the limited permission of Wolfram Research, Stack Exchange and this site disclaim all affiliation therewith.