cleaned up nodal_roles within community degree, runs fast