If I have a file like this,
"38" "424" "23"
"5" "960" "34"
"1023" "1294" "5"
..................
where the first two columns represent the nodes and the third column represent the weights on those edges. I want to know after making a graph with those edges, how can I calculate the assortativity coefficient on the basis of the weights on those edges. I know how to calculate on the basis of degree, or the edge labels but on the basis of weight, how can we do that?