Predicting affinity ties in a surname network