Lecture files for Discrete Mathematics (離散数理)
All files are in
https://github.com/coffeeshigeki/discretemathematics
You can see for example a python file of computing the scaling exponent of the degree distribution of the Barabasi-Albert model.
https://github.com/coffeeshigeki/discretemathematics/blob/master/scalefreenetwork.ipynb
Another is a python program checking that the mean graph distance of the Watts-Strogatz model is proportional to logarithm of the number of vertices.
https://github.com/coffeeshigeki/discretemathematics/blob/master/smallworld.ipynb