Lagrangian Constrained Community Detection