Source: https://math-baudon.fr/content/2013/TES spe/01 Graphes/Graphes 7-11.pdf