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

Aus VoWi
Zur Navigation springen Zur Suche springen
3) Determine the adjacency matrix of the graph below and use it to compute the number of walks of length 3 from 6 to 4. Furthermore, compute the number of cycles of length 3 which contain the vertex 4.

A=(0100000110000001010100000000110000100100001010100010000110000000)A2=(2000000111000001100011010020111001111010012101011101000001000001)A3=(1200000221000002112011110232111111211202221221111100110220000001)

a) A6,43=2

* 6−7−3−4
* 6−5−3−4

b) A4,43=2

* 4−6−3−4
* 4−5−4−4