On peer networks and group formation