SLIDE 1
Inf 2B: Graphs, BFS, DFS
Kyriakos Kalorkoti
School of Informatics University of Edinburgh
1 / 26
Inf 2B: Graphs, BFS, DFS Kyriakos Kalorkoti School of Informatics - - PDF document
Inf 2B: Graphs, BFS, DFS Kyriakos Kalorkoti School of Informatics University of Edinburgh 1 / 26 Directed and Undirected Graphs I A graph is a mathematical structure consisting of a set of vertices and a set of edges connecting the vertices. I
1 / 26
2 / 26
3 / 26
4 / 26
5 / 26
6 / 26
7 / 26
2 3 6 5 4 1
2 4 5 5 1 3 5 5 6 1 1 2 5 6 3 4
8 / 26
9 / 26
10 / 26
11 / 26
12 / 26
13 / 26
14 / 26
I White: not yet seen (not yet investigated). I Grey: put on schedule (under investigation). I Black: taken off schedule (completed).
15 / 26
16 / 26
17 / 26
18 / 26
2 3 6 5 4 1
19 / 26
20 / 26
21 / 26
22 / 26
2 3 6 5 4 1
23 / 26
24 / 26
25 / 26