Equilibrium selection and altruistic behavior in noncooperative social networks