Algorithms and dynamical models for communities and reputation in social networks.