core_periphery function

Discrete core-periphery model