structify_net.scoring.degree_assortativity
- structify_net.scoring.degree_assortativity(graph, normalized=False, positive_only=True, disassortativity=False)
Degree assortativity coefficient of the graph
The degree assortativity coefficient is computed as the Pearson correlation coefficient between the degrees of the nodes. If normalized=True, it is normalized to be between 0 and 1. If positive_only=True, it is set to 0 if negative. If disassortativity=True, it is set to -1 if positive and 1 if negative.
- Args:
graph (_type_): _description_ normalized (bool, optional): _description_. Defaults to False. positive_only (bool, optional): _description_. Defaults to True. disassortativity (bool, optional): _description_. Defaults to False.
- Returns:
_type_: _description_