GSoC 2021 with NumFOCUS: NetworkX, Blog 2
Jul 13, 2021
Tutorial on assortativity
Implementing tutorial for Assortativity turned out to be complicated than I thought, it was majorly due
- 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.
- 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
Reference
[1]M. E. J. Newman, Mixing patterns in networks https://doi.org/10.1103/PhysRevE.67.026126