Flocking dynamics mediated by weighted social networks