Source: https://www-fourier.ujf-grenoble.fr/~parisse/irem/gandit/TPComplexes1.pdf