Tutorial on assortativity

Implementing tutorial for Assortativity turned out to be complicated than I thought, it was majorly due

  1. Ambiguity in the definition of the assortativity mentioned in the paper [1] at the limiting cases of 0/0, which after some discussion in the weekly meeting we decided to let it be as nan.
  2. Implementation in NetworkX didn’t account for these limiting cases and also left restriction of having positive value attribute on numerical_assortvitity

Working on the tutorials, I realized that the process of creating tutorials helps to improve the source code quality as the issues that arose needed to be resolved and were addressed in this pull request, and new issues were raised regarding the nan return value.

Associated Pull Request: https://github.com/networkx/nx-guides/pull/42

Tutorial: https://56-40210422-gh.circle-artifacts.com/0/site/_build/html/content/algorithms/assortativity/correlation.html

Reference

[1]M. E. J. Newman, Mixing patterns in networks https://doi.org/10.1103/PhysRevE.67.026126

--

--