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.