Source: https://jdreichert.fr/Enseignement/Archives/SIO/graphes.pdf