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