Source: https://mathematiques.ac-bordeaux.fr/lycee2010/voie_generale/pgetressourcesgene/graphes/cours/elem_theorie_graphes.pdf