a) graf skierowany i jego macierz sąsiedztwa
1 2 3 4 5
1 |
0 |
1 |
1 |
0 |
0 |
2 |
0 |
0 |
1 |
1 |
1 |
3 |
0 |
0 |
0 |
1 |
0 |
4 |
0 |
0 |
1 |
0 |
0 |
5 |
0 |
0 |
0 |
1 |
1 |
1 |
2 |
3 |
4 |
5 | |
1 |
0 |
1 |
1 |
0 |
0 |
2 |
1 |
0 |
1 |
1 |
1 |
3 |
1 |
1 |
0 |
1 |
0 |
4 |
0 |
1 |
1 |
0 |
1 |
5 |
0 |
1 |
0 |
1 |
0 |
b) graf nieskierowany i jego macierz sąsiedztwa