Source: https://mathjdb.files.wordpress.com/2016/09/2016-2017-tes_spe-ds02-matrices_et_graphes.pdf