The function calculates the assortativity of a network, that measures the preference of interactions between similar nodes. As in most literature, 'similarity' is here defined in terms of node degrees.
matrix indicating network structure (symmetric)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.