Precursor to a shortest path finding algorithm