In a vertex-colored graph, an edge is _happy_ if its endpoints have the same color. Similarly, a vertex is _happy_ if all its incident edges are happy. Motivated by the computation of homophily in social networks, we consider the algorithmic aspects …