Heuristic Learning with Graph Neural Networks: A Unified Framework for Link Prediction