A Finite-time Distributed Protocol for Link Prediction in Networked Multi-Agent Systems