nocad.measures.pearson_dir#

nocad.measures.pearson_dir(adj, kind='out-in')[source]#

Degree assortativity of a directed network (Pearson correlation over the edges).

Parameters:
kind{“in-in”, “in-out”, “out-out”, “out-in”}

Degree of the start node and degree of the end node of every edge, as in MATLAB pearsonDir (types 1–4). Degrees include self-loops here, as in the MATLAB code.

Returns:
rfloat (nan if a degree sequence is constant)