TU Wien:Diskrete Mathematik für Informatik UE (Gittenberger)/Übungen WS13/Beispiel 4

Aus VoWi
Zur Navigation springen Zur Suche springen
4) Use the adjacency matrix of the following graph G1 in order to compute the number of triangles (i.e. cycles of length 3) of G1!

Theory[Bearbeiten | Quelltext bearbeiten]

Solution[Bearbeiten | Quelltext bearbeiten]

Cycles are on the diagonal in the power of the adjacency matrix. We therefore have cycles of length 3. Note that not all of them are unique! We have to avoid vertex permutations (e.g is the same triangle as and is the same triangle as ). The number of permutations is 6. The number of triangles is therefore