Source: https://www2.ac-lyon.fr/lyc01/cotiere/IMG/pdf/DS_graphes_probabilistes_13-14.pdf