Source: https://www.math.univ-toulouse.fr/~msablik/Cours/Graphes/GrapheNotes.pdf