https://medium.com/@monocosmo77/working-with-directed-acyclic-graphs-part2-machine-learning-e32068dafc22