· Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj....

373
Lecture 5: Graphs. Graphs! 1 / 20

Transcript of  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj....

Page 1:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Lecture 5: Graphs.

Graphs!

EulerDefinitions: model.Fact!Euler Again!!

Planar graphs.Euler Again!!!!

1 / 20

Page 2:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Lecture 5: Graphs.

Graphs!Euler

Definitions: model.Fact!Euler Again!!

Planar graphs.Euler Again!!!!

1 / 20

Page 3:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Lecture 5: Graphs.

Graphs!EulerDefinitions: model.

Fact!Euler Again!!

Planar graphs.Euler Again!!!!

1 / 20

Page 4:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Lecture 5: Graphs.

Graphs!EulerDefinitions: model.Fact!

Euler Again!!Planar graphs.

Euler Again!!!!

1 / 20

Page 5:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Lecture 5: Graphs.

Graphs!EulerDefinitions: model.Fact!Euler Again!!

Planar graphs.Euler Again!!!!

1 / 20

Page 6:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Lecture 5: Graphs.

Graphs!EulerDefinitions: model.Fact!Euler Again!!

Planar graphs.Euler Again!!!!

1 / 20

Page 7:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Lecture 5: Graphs.

Graphs!EulerDefinitions: model.Fact!Euler Again!!

Planar graphs.

Euler Again!!!!

1 / 20

Page 8:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Lecture 5: Graphs.

Graphs!EulerDefinitions: model.Fact!Euler Again!!

Planar graphs.Euler Again!!!!

1 / 20

Page 9:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?

Yes? No?We will see!

2 / 20

Page 10:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?

Yes? No?We will see!

2 / 20

Page 11:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?

Yes? No?We will see!

2 / 20

Page 12:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?

Yes? No?We will see!

2 / 20

Page 13:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?

Yes? No?We will see!

2 / 20

Page 14:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?

Yes? No?We will see!

2 / 20

Page 15:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?

Yes? No?We will see!

2 / 20

Page 16:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?

Yes? No?We will see!

2 / 20

Page 17:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?

Yes? No?We will see!

2 / 20

Page 18:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?

Yes? No?We will see!

2 / 20

Page 19:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?Yes?

No?We will see!

2 / 20

Page 20:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?Yes? No?

We will see!

2 / 20

Page 21:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Konigsberg bridges problem.

Can you make a tour visiting each bridge exactly once?

“Konigsberg bridges” by Bogdan Giusca - License.

A

B

C

D

Can you draw a tour in the graph where you visit each edge once?Yes? No?We will see!

2 / 20

Page 22:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph:

G = (V ,E).V - set of vertices.{A,B,C,D}

E ⊆ V ×V - set of edges.{{A,B},{A,B},{A,C},{B,C},{B,D},{B,D},{C,D}}.

For CS 70, usually simple graphs.No parallel edges.

Multigraph above.

3 / 20

Page 23:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph: G = (V ,E).

V - set of vertices.{A,B,C,D}

E ⊆ V ×V - set of edges.{{A,B},{A,B},{A,C},{B,C},{B,D},{B,D},{C,D}}.

For CS 70, usually simple graphs.No parallel edges.

Multigraph above.

3 / 20

Page 24:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph: G = (V ,E).V - set of vertices.

{A,B,C,D}E ⊆ V ×V - set of edges.{{A,B},{A,B},{A,C},{B,C},{B,D},{B,D},{C,D}}.

For CS 70, usually simple graphs.No parallel edges.

Multigraph above.

3 / 20

Page 25:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph: G = (V ,E).V - set of vertices.{A,B,C,D}

E ⊆ V ×V - set of edges.{{A,B},{A,B},{A,C},{B,C},{B,D},{B,D},{C,D}}.

For CS 70, usually simple graphs.No parallel edges.

Multigraph above.

3 / 20

Page 26:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph: G = (V ,E).V - set of vertices.{A,B,C,D}

E ⊆ V ×V -

set of edges.{{A,B},{A,B},{A,C},{B,C},{B,D},{B,D},{C,D}}.

For CS 70, usually simple graphs.No parallel edges.

Multigraph above.

3 / 20

Page 27:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph: G = (V ,E).V - set of vertices.{A,B,C,D}

E ⊆ V ×V - set of edges.

{{A,B},{A,B},{A,C},{B,C},{B,D},{B,D},{C,D}}.For CS 70, usually simple graphs.

No parallel edges.Multigraph above.

3 / 20

Page 28:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph: G = (V ,E).V - set of vertices.{A,B,C,D}

E ⊆ V ×V - set of edges.{{A,B}

,{A,B},{A,C},{B,C},{B,D},{B,D},{C,D}}.For CS 70, usually simple graphs.

No parallel edges.Multigraph above.

3 / 20

Page 29:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph: G = (V ,E).V - set of vertices.{A,B,C,D}

E ⊆ V ×V - set of edges.{{A,B},{A,B}

,{A,C},{B,C},{B,D},{B,D},{C,D}}.For CS 70, usually simple graphs.

No parallel edges.Multigraph above.

3 / 20

Page 30:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph: G = (V ,E).V - set of vertices.{A,B,C,D}

E ⊆ V ×V - set of edges.{{A,B},{A,B},{A,C},

{B,C},{B,D},{B,D},{C,D}}.For CS 70, usually simple graphs.

No parallel edges.Multigraph above.

3 / 20

Page 31:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph: G = (V ,E).V - set of vertices.{A,B,C,D}

E ⊆ V ×V - set of edges.{{A,B},{A,B},{A,C},{B,C},{B,D},{B,D},{C,D}}.

For CS 70, usually simple graphs.No parallel edges.

Multigraph above.

3 / 20

Page 32:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph: G = (V ,E).V - set of vertices.{A,B,C,D}

E ⊆ V ×V - set of edges.{{A,B},{A,B},{A,C},{B,C},{B,D},{B,D},{C,D}}.

For CS 70, usually simple graphs.

No parallel edges.Multigraph above.

3 / 20

Page 33:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph: G = (V ,E).V - set of vertices.{A,B,C,D}

E ⊆ V ×V - set of edges.{{A,B},{A,B},{A,C},{B,C},{B,D},{B,D},{C,D}}.

For CS 70, usually simple graphs.No parallel edges.

Multigraph above.

3 / 20

Page 34:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graphs: formally.

AB C

D

AB C

D

Graph: G = (V ,E).V - set of vertices.{A,B,C,D}

E ⊆ V ×V - set of edges.{{A,B},{A,B},{A,C},{B,C},{B,D},{B,D},{C,D}}.

For CS 70, usually simple graphs.No parallel edges.

Multigraph above.

3 / 20

Page 35:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).

V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 36:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.

{1,2,3,4}E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 37:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 38:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.

{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 39:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),

(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 40:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),

(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 41:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),

(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 42:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 43:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.

Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 44:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament:

1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 45:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2,

...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 46:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence:

1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 47:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2,

..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 48:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 49:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network:

Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 50:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed?

Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 51:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?

Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 52:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends.

Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 53:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.

Likes. Directed.Sometimes both ways!

4 / 20

Page 54:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes.

Directed.Sometimes both ways!

4 / 20

Page 55:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 56:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Graphs

12 3

4

G = (V ,E).V - set of vertices.{1,2,3,4}

E ordered pairs of vertices.{(1,2),(1,3),(1,4),(2,4),(3,4)}

One way streets.Tournament: 1 beats 2, ...Precedence: 1 is before 2, ..

Social Network: Directed? Undirected?Friends. Undirected.Likes. Directed.

Sometimes both ways!

4 / 20

Page 57:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 58:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 59:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10?

1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 60:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1,

5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 61:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5,

7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 62:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7,

8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 63:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.

u is neighbor of v if {u,v} ∈ E .Edge {10,5} is incident to vertex 10 and vertex 5.

Edge {u,v} is incident to u and v .Degree of vertex 1? 2

Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 64:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 65:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to

vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 66:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 67:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1?

2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 68:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2

Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 69:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.

Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 70:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 71:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 72:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?

In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 73:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10?

1 Out-degree of 10? 3

5 / 20

Page 74:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1

Out-degree of 10? 3

5 / 20

Page 75:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10?

3

5 / 20

Page 76:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 77:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Graph Concepts and Definitions.Graph: G = (V ,E)

neighbors, adjacent, degree, incident, in-degree, out-degree

1 2

3

4

5

6

7

8

910

11

10

1

5

7

8

1 2

3

4

5

6

7

8

910

11

10

Neighbors of 10? 1, 5, 7, 8.u is neighbor of v if {u,v} ∈ E .

Edge {10,5} is incident to vertex 10 and vertex 5.Edge {u,v} is incident to u and v .

Degree of vertex 1? 2Degree of vertex u is number of incident edges.Equals number of neighbors in simple graph.

Directed graph?In-degree of 10? 1 Out-degree of 10? 3

5 / 20

Page 78:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 79:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.

(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 80:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.

(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 81:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 82:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)!

Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 83:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 84:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)!

Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 85:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 86:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 87:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What?

For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 88:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 89:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...

2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 90:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..

or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 91:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?

How many incidences does each edge contribute? 2.2|E | incidences are contributed in total!

What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 92:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute?

2.2|E | incidences are contributed in total!

What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 93:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 94:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!

What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 95:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v?

incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 96:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !

sum of degrees is total incidences ... or 2|E |.Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 97:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences

... or 2|E |.Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 98:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 99:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Quick Proof.The sum of the vertex degrees is equal to

(A) the total number of vertices, |V |.(B) the total number of edges, |E |.(C) What?

Not (A)! Triangle.

Not (B)! Triangle.

What? For triangle number of edges is 3, the sum of degrees is 6.

Could it always be...2|E |? ..or 2|V |?How many incidences does each edge contribute? 2.

2|E | incidences are contributed in total!What is degree v? incidences contributed to v !sum of degrees is total incidences ... or 2|E |.

Thm: Sum of vertex degress is 2|E |.

6 / 20

Page 100:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 101:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path?

{1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 102:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ?

No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 103:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!

Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).

Quick Check! Length of path? k vertices or k −1 edges.Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 104:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path?

{1,10}, {10,5}, {5,4}, {4,11}? Yes!Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).

Quick Check! Length of path? k vertices or k −1 edges.Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 105:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}?

Yes!Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).

Quick Check! Length of path? k vertices or k −1 edges.Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 106:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 107:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).

Quick Check! Length of path? k vertices or k −1 edges.Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 108:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check!

Length of path? k vertices or k −1 edges.Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 109:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path?

k vertices or k −1 edges.Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 110:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices

or k −1 edges.Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 111:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 112:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk .

Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 113:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle?

k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 114:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!

Path is usually simple. No repeated vertex!Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 115:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple.

No repeated vertex!Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 116:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 117:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.

Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 118:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.

Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 119:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 120:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 121:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!

Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 122:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ??

Tour!

7 / 20

Page 123:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 124:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Paths, walks, cycles, tour.

1 2

3

4

5

6

7

8

910

11

A path in a graph is a sequence of edges.

Path? {1,10}, {8,5}, {4,5} ? No!Path? {1,10}, {10,5}, {5,4}, {4,11}? Yes!

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Quick Check! Length of path? k vertices or k −1 edges.

Cycle: Path with v1 = vk . Length of cycle? k −1 vertices and edges!Path is usually simple. No repeated vertex!

Walk is sequence of edges with possible repeated vertex or edge.Tour is walk that starts and ends at the same node.

Quick Check!Path is to Walk as Cycle is to ?? Tour!

7 / 20

Page 125:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Paths.

1 2

3

4

5

6

7

8

910

11

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Paths, walks, cycles, tours ... are analagous to undirected now.

8 / 20

Page 126:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Paths.

1 2

3

4

5

6

7

8

910

11

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).

Paths, walks, cycles, tours ... are analagous to undirected now.

8 / 20

Page 127:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Paths.

1 2

3

4

5

6

7

8

910

11

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).

Paths, walks, cycles, tours ... are analagous to undirected now.

8 / 20

Page 128:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Paths.

1 2

3

4

5

6

7

8

910

11

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).

Paths, walks, cycles, tours ... are analagous to undirected now.

8 / 20

Page 129:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Paths.

1 2

3

4

5

6

7

8

910

11

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).

Paths, walks, cycles, tours ... are analagous to undirected now.

8 / 20

Page 130:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Paths.

1 2

3

4

5

6

7

8

910

11

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Paths,

walks, cycles, tours ... are analagous to undirected now.

8 / 20

Page 131:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Paths.

1 2

3

4

5

6

7

8

910

11

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Paths, walks,

cycles, tours ... are analagous to undirected now.

8 / 20

Page 132:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Paths.

1 2

3

4

5

6

7

8

910

11

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Paths, walks, cycles,

tours ... are analagous to undirected now.

8 / 20

Page 133:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Paths.

1 2

3

4

5

6

7

8

910

11

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Paths, walks, cycles, tours

... are analagous to undirected now.

8 / 20

Page 134:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Directed Paths.

1 2

3

4

5

6

7

8

910

11

Path: (v1,v2),(v2,v3), . . .(vk−1,vk ).Paths, walks, cycles, tours ... are analagous to undirected now.

8 / 20

Page 135:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes? No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 136:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes? No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 137:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.

Is graph connected? Yes? No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 138:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected?

Yes? No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 139:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes?

No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 140:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes? No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 141:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes? No?

Proof:

Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 142:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes? No?

Proof:Any u,v :

path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 143:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes? No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 144:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes? No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 145:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes? No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!

Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 146:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes? No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.

Or cut out cycles. .

9 / 20

Page 147:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes? No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles.

.

9 / 20

Page 148:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes? No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 149:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connectivity: undirected graph.

1 2

3

4

5

6

7

8

910

11

u and v are connected if there is a path (or walk) between u and v .

A connected graph is a graph where all pairs of vertices areconnected.

If one vertex x is connected to every other vertex.Is graph connected? Yes? No?

Proof:Any u,v : path from u to x and then from x to v is u−v walk.

May not be simple!Either modify definition to walk.Or cut out cycles. .

9 / 20

Page 150:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connected Components

1 2

3

4

5

6

7

8

910

11

Is graph above connected?

Yes!

How about now? No!

Connected Components? {1},{10,7,5,8,4,3,11},{2,9,6}.Connected component - maximal set of connected vertices.

Quick Check: Is {10,7,5} a connected component? No.

10 / 20

Page 151:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connected Components

1 2

3

4

5

6

7

8

910

11

Is graph above connected? Yes!

How about now? No!

Connected Components? {1},{10,7,5,8,4,3,11},{2,9,6}.Connected component - maximal set of connected vertices.

Quick Check: Is {10,7,5} a connected component? No.

10 / 20

Page 152:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connected Components

1 2

3

4

5

6

7

8

910

11

Is graph above connected? Yes!

How about now?

No!

Connected Components? {1},{10,7,5,8,4,3,11},{2,9,6}.Connected component - maximal set of connected vertices.

Quick Check: Is {10,7,5} a connected component? No.

10 / 20

Page 153:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connected Components

1 2

3

4

5

6

7

8

910

11

Is graph above connected? Yes!

How about now? No!

Connected Components? {1},{10,7,5,8,4,3,11},{2,9,6}.Connected component - maximal set of connected vertices.

Quick Check: Is {10,7,5} a connected component? No.

10 / 20

Page 154:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connected Components

1 2

3

4

5

6

7

8

910

11

Is graph above connected? Yes!

How about now? No!

Connected Components?

{1},{10,7,5,8,4,3,11},{2,9,6}.Connected component - maximal set of connected vertices.

Quick Check: Is {10,7,5} a connected component? No.

10 / 20

Page 155:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connected Components

1 2

3

4

5

6

7

8

910

11

Is graph above connected? Yes!

How about now? No!

Connected Components? {1},{10,7,5,8,4,3,11},{2,9,6}.

Connected component - maximal set of connected vertices.Quick Check: Is {10,7,5} a connected component? No.

10 / 20

Page 156:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connected Components

1 2

3

4

5

6

7

8

910

11

Is graph above connected? Yes!

How about now? No!

Connected Components? {1},{10,7,5,8,4,3,11},{2,9,6}.Connected component - maximal set of connected vertices.

Quick Check: Is {10,7,5} a connected component? No.

10 / 20

Page 157:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connected Components

1 2

3

4

5

6

7

8

910

11

Is graph above connected? Yes!

How about now? No!

Connected Components? {1},{10,7,5,8,4,3,11},{2,9,6}.Connected component - maximal set of connected vertices.

Quick Check: Is {10,7,5} a connected component?

No.

10 / 20

Page 158:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Connected Components

1 2

3

4

5

6

7

8

910

11

Is graph above connected? Yes!

How about now? No!

Connected Components? {1},{10,7,5,8,4,3,11},{2,9,6}.Connected component - maximal set of connected vertices.

Quick Check: Is {10,7,5} a connected component? No.

10 / 20

Page 159:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 160:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.

Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 161:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 162:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.

Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 163:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.

Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 164:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit.

Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 165:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.

Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 166:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 167:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 168:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 169:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter,

you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 170:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.

For starting node, tour leaves first ....then enters at end.Not The Hotel California.

11 / 20

Page 171:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.

For starting node, tour leaves first ....then enters at end.Not The Hotel California.

11 / 20

Page 172:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.

For starting node, tour leaves first ....then enters at end.Not The Hotel California.

11 / 20

Page 173:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node,

tour leaves first ....then enters at end.Not The Hotel California.

11 / 20

Page 174:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first

....then enters at end.Not The Hotel California.

11 / 20

Page 175:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 176:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 177:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finally..back to Euler!

An Eulerian Tour is a tour that visits each edge exactly once.

Theorem: Any undirected graph has an Eulerian tour if and only if allvertices have even degree and is connected.Proof of only if: Eulerian =⇒ connected and all even degree.

Eulerian Tour is connected so graph is connected.Tour enters and leaves vertex v on each visit.Uses two incident edges per visit. Tour uses all incident edges.Therefore v has even degree.

When you enter, you can leave.For starting node, tour leaves first ....then enters at end.

Not The Hotel California.

11 / 20

Page 178:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm.

First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 179:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 180:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges

... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 181:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges

... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 182:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges

... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 183:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges

... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 184:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges

... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 185:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges

... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 186:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .

2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 187:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.

3. Let G1, . . . ,Gk be connected components.Each is touched by C: Vi ∩C 6= φ .

Why? G was connected.Let vi be (first) node in Gi touched by C.

Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 188:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 189:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .

Why? G was connected.Let vi be (first) node in Gi touched by C.

Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 190:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why?

G was connected.Let vi be (first) node in Gi touched by C.

Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 191:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 192:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.

Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 193:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1,

v2 = 10, v3 = 4, v4 = 2.4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 194:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10,

v3 = 4, v4 = 2.4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 195:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4,

v4 = 2.4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 196:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 197:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi

5. Splice together.1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 198:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi

5. Splice together.1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 199:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 200:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10

,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 201:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10

,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 202:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4

,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 203:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4

5,2,6,9,2 and to 1!

12 / 20

Page 204:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2

,6,9,2 and to 1!

12 / 20

Page 205:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2

and to 1!

12 / 20

Page 206:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Finding a tour!

Proof of if: Even + connected =⇒ Eulerian Tour.We will give an algorithm. First by picture.

1 2

3

4

5

6

7

8

910

11

1. Start walk from v (1) on “unused” edges... till you get back to v .2. Remove tour, C.3. Let G1, . . . ,Gk be connected components.

Each is touched by C: Vi ∩C 6= φ .Why? G was connected.

Let vi be (first) node in Gi touched by C.Example: v1 = 1, v2 = 10, v3 = 4, v4 = 2.

4. Recurse on G1, . . . ,Gk starting from vi5. Splice together.

1,10,7,8,5,10 ,8,4,3,11,4 5,2,6,9,2 and to 1!

12 / 20

Page 207:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 208:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !

Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 209:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree.

If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 210:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave

except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 211:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 212:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 213:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.

Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 214:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)

Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 215:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .

Let vi be first vertex of C that is in Gi .Why is there a vi in C?

G was connected =⇒a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 216:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 217:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?

G was connected =⇒a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 218:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 219:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 220:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 221:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree

and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 222:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.

Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 223:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 224:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 225:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi

starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 226:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi .

Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 227:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.

4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 228:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 229:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C

exactly once.By induction for all edges in each Gi .

13 / 20

Page 230:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.

By induction for all edges in each Gi .

13 / 20

Page 231:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 232:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Recursive/Inductive Algorithm.1. Take a walk from arbitrary node v , until you get back to v .

Claim: Do get back to v !Proof of Claim: Even degree. If enter, can leave except for v .

2. Remove cycle, C, from G.Resulting graph may be disconnected. (Removed edges!)Let components be G1, . . . ,Gk .Let vi be first vertex of C that is in Gi .

Why is there a vi in C?G was connected =⇒

a vertex in Gi must be incident to a removed edge in C.

Claim: Each vertex in each Gi has even degree and is connected.Prf: Tour C has even incidences to any vertex v .

3. Find tour Ti of Gi starting/ending at vi . Induction.4. Splice Ti into C where vi first appears in C.

Visits every edge once:Visits edges in C exactly once.By induction for all edges in each Gi .

13 / 20

Page 233:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 234:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 235:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework.

Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 236:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!

Should do homework. No need to write up.Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 237:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework.

No need to write up.Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 238:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 239:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework.

Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 240:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 241:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 242:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth:

mostly test, both options!Variance mostly in exams for A/B range.most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 243:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test,

both options!Variance mostly in exams for A/B range.most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 244:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!

Variance mostly in exams for A/B range.most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 245:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.

most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 246:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.

most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 247:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.

most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 248:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.

most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 249:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Break time!

Well admin time!

Must choose homework option or test only: soon after recieving hw 1scores.

Test Option: don’t have to do homework. Yes!!Should do homework. No need to write up.

Homework Option: have to do homework. Bummer!

The truth: mostly test, both options!Variance mostly in exams for A/B range.

most homework students get near perfect scores on homework.

How will I do?

Mostly up to you.

14 / 20

Page 250:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 251:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar?

Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 252:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.

Four node complete? Yes.Note: Complete means every possible edge is present, also clique.

Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 253:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete?

Yes.Note: Complete means every possible edge is present, also clique.

Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 254:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 255:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.

Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 256:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5?

No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 257:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No!

Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 258:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No! Why?

Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 259:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 260:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 261:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite?

Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 262:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.

Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 263:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3.

No. Why? Later.

15 / 20

Page 264:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No.

Why? Later.

15 / 20

Page 265:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why?

Later.

15 / 20

Page 266:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Planar graphs.A graph that can be drawn in the plane without edge crossings.

Planar? Yes for Triangle.Four node complete? Yes.

Note: Complete means every possible edge is present, also clique.Five node complete or K5? No! Why? Later.

Two to three nodes, bipartite? Yes.Three to three nodes, complete/bipartite or K3,3. No. Why? Later.

15 / 20

Page 267:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 268:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 269:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces for

triangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 270:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle?

2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 271:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2

complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 272:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4?

4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 273:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4

bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 274:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3?

3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 275:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 276:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 277:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 278:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 279:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 280:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle:

3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 281:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!

K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 282:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4:

4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 283:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!

K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 284:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3:

5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 285:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 286:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 287:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3!

Proven! Not!!!!

16 / 20

Page 288:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven!

Not!!!!

16 / 20

Page 289:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler’s Formula.

Faces: connected regions of the plane.

How many faces fortriangle? 2complete on four vertices or K4? 4bipartite, complete two/three or K2,3? 3

v is number of vertices, e is number of edges, f is number of faces.

Euler’s Formula: Connected planar graph has v + f = e+2.

Triangle: 3+2 = 3+2!K4: 4+4 = 6+2!K2,3: 5+3 = 6+2!

Examples = 3! Proven! Not!!!!

16 / 20

Page 290:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 291:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 292:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces?

6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 293:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges?

12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 294:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12.

Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 295:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices?

8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 296:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 297:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.

8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 298:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.

8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 299:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 300:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it.

Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 301:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction?

Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 302:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 303:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 304:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes

≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 305:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡

Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 306:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 307:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.

Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 308:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.

Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 309:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere

≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 310:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane!

Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 311:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!

17 / 20

Page 312:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and Polyhedron.Greeks knew formula for convex polyhedron.

.

Faces? 6. Edges? 12. Vertices? 8.

Euler: Connected planar graph: v + f = e+2.8+6 = 12+2.

Greeks couldn’t prove it. Induction? Remove vertice for polyhedron?

Convex Polyhedron without holes ≡ Planar graphs.

Surround by sphere.Project from point inside polytope onto sphere.Sphere ≡ Plane! Topologically.

Euler proved formula thousands of years later!17 / 20

Page 313:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 314:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.

We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 315:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.

Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 316:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 317:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 318:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.

≥ 3f face-edge adjacencies.Each edge is adjacent to (at most) two faces.

≤ 2e face-edge adjacencies.=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 2

3e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 319:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 320:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.

≤ 2e face-edge adjacencies.=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 2

3e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 321:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 322:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e

for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 323:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for

any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 324:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any

planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 325:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar

graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 326:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph.

Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 327:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 328:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler:

v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 329:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2

=⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 330:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 331:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5

Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 332:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges?

4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 333:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1

= 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 334:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10.

Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 335:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices?

5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 336:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.

10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 337:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9.

=⇒ K5 is not planar.

18 / 20

Page 338:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Euler and non-planarity of K5 and K3,3

Euler: v + f = e+2 for connected planar graph.We consider simple graphs where v ≥ 3.Consider Face edge Adjacencies.

Each face is adjacent to at least three edges.≥ 3f face-edge adjacencies.

Each edge is adjacent to (at most) two faces.≤ 2e face-edge adjacencies.

=⇒ 3f ≤ 2e for any planar graph. Or f ≤ 23e.

Plug into Euler: v + 23e ≥ e+2 =⇒ e ≤ 3v −6

K5 Edges? 4+3+2+1 = 10. Vertices? 5.10 6≤ 3(5)−6 = 9. =⇒ K5 is not planar.

18 / 20

Page 339:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e

for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 340:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 341:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3?

Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 342:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges?

9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 343:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9.

Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 344:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 345:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6?

Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 346:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 347:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 348:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work.

Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 349:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 350:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles.

Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 351:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 352:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 353:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length;

bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 354:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 355:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e

for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 356:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for

any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 357:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any

bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 358:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite

planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 359:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.

Euler: v + 12e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 360:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2

=⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 361:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 362:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 363:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4.

=⇒ K3,3 is not planar!

19 / 20

Page 364:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Proving non-planarity for K3,3

Euler’s formula =⇒ 3f ≤ 2e for any planar graph.

K3,3? Edges? 9. Vertices. 6.

9≤ 3(6)−6? Sure!

Proof doesn’t work. Let’s fix this.

But no cycles that are triangles. Face is of length ≥ 4.

Because all cycles are even length; bipartite or edges only gobetween two groups.

.... 4f ≤ 2e for any bipartite planar graph.Euler: v + 1

2e ≥ e+2 =⇒ e ≤ 2v −4 for bipartite planar graph

9 6≤ 2(6)−4. =⇒ K3,3 is not planar!

19 / 20

Page 365:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Oh my goodness..what have we done!

Graphs.

Basics.Connectivity.Algorithm for Eulerian Tour.

Planar Graphs.

Euler’s formula.

Non-planarity of K5 and K3,3.

Next Time: prove Euler’s formula.

20 / 20

Page 366:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Oh my goodness..what have we done!

Graphs.Basics.

Connectivity.Algorithm for Eulerian Tour.

Planar Graphs.

Euler’s formula.

Non-planarity of K5 and K3,3.

Next Time: prove Euler’s formula.

20 / 20

Page 367:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Oh my goodness..what have we done!

Graphs.Basics.

Connectivity.

Algorithm for Eulerian Tour.

Planar Graphs.

Euler’s formula.

Non-planarity of K5 and K3,3.

Next Time: prove Euler’s formula.

20 / 20

Page 368:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Oh my goodness..what have we done!

Graphs.Basics.

Connectivity.Algorithm for Eulerian Tour.

Planar Graphs.

Euler’s formula.

Non-planarity of K5 and K3,3.

Next Time: prove Euler’s formula.

20 / 20

Page 369:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Oh my goodness..what have we done!

Graphs.Basics.

Connectivity.Algorithm for Eulerian Tour.

Planar Graphs.

Euler’s formula.

Non-planarity of K5 and K3,3.

Next Time: prove Euler’s formula.

20 / 20

Page 370:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Oh my goodness..what have we done!

Graphs.Basics.

Connectivity.Algorithm for Eulerian Tour.

Planar Graphs.

Euler’s formula.

Non-planarity of K5 and K3,3.

Next Time: prove Euler’s formula.

20 / 20

Page 371:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Oh my goodness..what have we done!

Graphs.Basics.

Connectivity.Algorithm for Eulerian Tour.

Planar Graphs.

Euler’s formula.

Non-planarity of K5 and K3,3.

Next Time: prove Euler’s formula.

20 / 20

Page 372:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Oh my goodness..what have we done!

Graphs.Basics.

Connectivity.Algorithm for Eulerian Tour.

Planar Graphs.

Euler’s formula.

Non-planarity of K5 and K3,3.

Next Time: prove Euler’s formula.

20 / 20

Page 373:  · Quick Proof. The sum of the vertex degrees is equal to (A) the total number of vertices, jVj. (B) the total number of edges, jEj. (C) What? Not (A)! Triangle. Not (B)! Triangle.

Oh my goodness..what have we done!

Graphs.Basics.

Connectivity.Algorithm for Eulerian Tour.

Planar Graphs.

Euler’s formula.

Non-planarity of K5 and K3,3.

Next Time: prove Euler’s formula.

20 / 20