https://medium.com/@monocosmo77/working-with-erd%C5%91s-r%C3%A9nyi-models-part4-machine-learning-ca8dd9ac6573