Source: https://www.i2m.univ-amu.fr/perso/raphaele.herbin/PUBLI/anedp-chap2.pdf