assumes that fin points to a new line of fin, with numLinks numbers (in 1-based) corresponding to the nearest neighbors of currentNodeIndex.
assumes that fin points to a new line of fin, with numLinks numbers (in 1-based) corresponding to the nearest neighbors of currentNodeIndex.currentNodeIndex is 0-based.