Rewrote finding links from neighbors in cut.