Source: http://site.math.free.fr/terminale_es/cours_terminale_es/graphes.pdf