Soit M = pmatrix 0 & 1 & 0 1 & 0 & 1 0 & 1 & 0 pmatrix la matrice d'adjacence d'un graphe. Calculer la matrice de connexité C et déterminer si le graphe est fortement connexe. En déduire le diamètre du graphe.
Indice : Calcule C = M + M^2 + M^3. Le graphe est fortement connexe si tous les coefficients non diagonaux sont strictement positifs. Le diamètre est la distance maximale entre deux sommets.
M^2 = pmatrix 1 & 0 & 1 0 & 2 & 0 1 & 0 & 1 pmatrix, M^3 = pmatrix 0 & 2 & 0 2 & 0 & 2 0 & 2 & 0 pmatrix
C = pmatrix 1 & 3 & 1 3 & 2 & 3 1 & 3 & 1 pmatrix