Constructing the Core of Communities