assc - calculate the assortative mixing parameter in Networks purposed by M.E.J. Newman
A network is said to show assortative mixing if the nodes in the network that have many connections tend to be connected to other nodes with many connections, and show disassortative mixing reversely. Here when r>0, network is assortative, when r is small than 0, network is disassortative.
[a b]=ba(6,4,9994); r=assc(a,b,10000)