a set of python programs for calculating degree distributions of graphs and solving real problems