Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

64
Chap. 11 Graph Theory and Applications 1

Transcript of Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Page 1: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Chap. 11 Graph Theory and Applications

1

Page 2: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Directed Graph

2

Page 3: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

(Undirected) Graph

3

Page 4: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Vertex and Edge Sets

4

Page 5: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Walk

5

Page 6: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Closed (Open) Walk

6

Page 7: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Trail, Path, Circuit, and Cycle

7

Page 8: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Comparison of Walk, Trail, Path, Circuit, and Cycle

8

Page 9: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.1

Observation:

9

Page 10: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.1

1. It suffices to show from a to b, the shortest trail is the shortest path.2. Let be the shortest trail

from a to b.3.

4. 10

Page 11: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Connected Graph

connected graph disconnected graph11

Page 12: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Multigraph

12

Page 13: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Subgraph

13

Page 14: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Spanning Subgraph

14

Page 15: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Induced Subgraph

15

Page 16: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Which of the following is an induced subgraph of G? O

Induced Subgraph

O X

16

Page 17: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Components of a Graph

1 2

connected sugraph

17

Page 18: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

G-v

18

Page 19: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

G-e

19

Page 20: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Complete Graph

20

Page 21: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Complement of a Graph

21

Page 22: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Isomorphic Graphs

22

Page 23: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Isomorphic Graphs

Which of the following function define a graph isomorphism for the graphs shown below?

OX

23

Page 24: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Isomorphic Graphs

24

Page 25: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Isomorphic Graphs

Are the following two graphs isomorphic?

In (a), a and d each adjacent to two other vertices.In (b), u, x, and z each adjacent to two other vertices.

X

25

Page 26: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Vertex Degree

26

Page 27: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.2

27

Page 28: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Corollary 11.1

28

Page 29: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

29

Page 30: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

a

b

c

d

30

Page 31: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Euler Circuit and Euler Trail

31

Page 32: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.3

(⇒) 1.2.3.4.5.6.

7.32

Page 33: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.3

8.

9.

33

Page 34: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.3

(⇐) 1.2.3.

34

Page 35: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.3

4.

5.6.

7.8.

35

Page 36: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.3

9.10.11.12.

13.

14.36

Page 37: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Corollary 11.2

(⇐) 1.

2.3.4.(⇒) The proof of only if part is similar to that of

Theorem 11.3 and omitted.

37

Page 38: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Incoming and Outgoing Degrees

2

38

Page 39: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.4

The proof is similar to that of Theorem 11.3 and omitted.

39

Page 40: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Planar Graph

Which of the following is a planar graph?

O O40

Page 41: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Euler’s Theorem

v =e =r =v – e + r = 2

783

41

Page 42: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Euler’s Theorem• Proof. 1. Use induction on v (number of vertices).• 2. Basis (v = 1):

– G is a “bouquet” of loops, each a closed curve in the embedding.

– If e = 0, then r = 1, and the formula holds.– Each added loop passes through a region and cuts

it into 2 regions. This augments the edge count and the region count each by 1. Thus the formula holds when v = 1 for any number of edges.

42

Page 43: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Euler’s Theorem• 3. Induction step (v>1):

– There exists an edge e that is not a loop

because G is connected.– Obtain a graph G’ with v’ vertices, e’ edges, and r’

regions by contracting e.– Clearly, v’=v–1, e’=e–1, and r’=r.– v’– e’+ r’ = 2. – Therefore, v-e+r=2.

e

(induction hypothesis)

43

Page 44: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Corollary 11.3

1. It suffices to consider connected graphs; otherwise, we could add edges.

2. If v 3, every region contains at least three edges (L(Ri) 3r).

3. 2e=L(Ri), implying 2e3r.

4. By Euler’s Theorem, v–e+r=2, implying e≤ 3v– 6.

If also G is triangle-free, then e ≤ 2v–4.

(L(Ri) 4r)

(2e4r)

(e≤ 2v–4)

If G is a simple planar graph with at least three vertices, then e≤3v–6. (A simple graph is not a multigraph and does not contain any loop.)

44

Page 45: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Bipartite Graph

45

Page 46: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Nonplanarity of K5 and K3,3

K5 (e = 10, n = 5) K3,3 (e = 9, n = 6)

• These graphs have too many edges to be planar. – For K5, we have e = 10>9 = 3n-6.

– Since K3,3 is triangle-free, we have e = 9>8 = 2n-4.

46

Page 47: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Subdivision of a Graph

47

Page 48: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Subdivision of a Graph

48

Page 49: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

49

Page 50: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

50

Page 51: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Hamilton Cycle

51

Page 52: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Hamilton Cycle

Does the following graph contain a hamiltion cycle? X

52

Page 53: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.8

1.2.

3.4.

53

Page 54: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.8

5.6.

7.8.9.10.11.12.

13.54

Page 55: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.814.15.

16.

17.18.

19.

55

Page 56: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.8

17.18.

19.

20.

56

Page 57: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.9

1.2.

3.

4.5.

57

Page 58: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.9

6.

7.

8.9.

10.

11.58

Page 59: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Proper Coloring and Chromatic Number

59

Page 60: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Counting Proper Colors

1.

2.

3.4.

60

Page 61: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

61

Page 62: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Theorem 11.10

1.2.3.4.5.6.

62

Page 63: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Example 11.36

63

Page 64: Chap. 11 Graph Theory and Applications 1. Directed Graph 2.

Example 11.37

64