Core-periphery structure is a mesoscale structure of networks, where a core is a group of densely interconnected nodes, and a periphery is a group of sparsely interconnected nodes.
core:紧密互联的节点
periphery:稀疏互联的节点
可有单core单periphery的,也可有多core多periphery的
确定好属于cp结构的节点
同色属同一的c-p结构,反映在代码c = algorithm.get_pair_id()
中,同色的cp结构的c value相同,即属于同一core-periphery pair
#得到core-periphery的集合字典,key:节点 value:所属core-periphery pair
确定节点是c还是p
用x = algorithm.get_coreness()
value用0,1取值,用0或1代表谁是c谁是p
#节点是core,还是periphery的字典,key:节点,value(0,1):0periphery;1core