Source: https://l3img.files.wordpress.com/2007/03/matrices_associees_a_un_graphe.pdf