ADD: test for indegree distribution function
FIX: flake8 errors