Source: https://www.math.univ-toulouse.fr/~msablik/CoursIUT/Graphe/2015-2016-Graphe-TD1-PremiereNotion.pdf