Core-periphery Partitioning and Quantum Annealing