compute path length after taking into account the position of simulated vertex