The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge...

75
The Seven Bridges of K¨ onigsberg I In 1735, the city of K¨ onigsberg (present-day Kaliningrad) was divided into four districts by the Pregel River. 1 I The four districts were connected by seven bridges. 1 Source for K¨ onigsberg maps: MacTutor History of Mathematics archive, www-history.mcs.st-and.ac.uk

Transcript of The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge...

Page 1: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

The Seven Bridges of Konigsberg

I In 1735, the city of Konigsberg (present-day Kaliningrad)was divided into four districts by the Pregel River.1

I The four districts were connected by seven bridges.

1Source for Konigsberg maps: MacTutor History of Mathematics archive,www-history.mcs.st-and.ac.uk

Page 2: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

The Seven Bridges of Konigsberg

Is it possible to design a walking tour of Konigsberg in whichyou cross each of the seven bridges exactly once?

Page 3: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

The Seven Bridges of Konigsberg

Is it possible to design a walking tour of Konigsberg in whichyou cross each of the seven bridges exactly once?

Page 4: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

The Seven Bridges of Konigsberg

Is it possible to design a walking tour of Konigsberg in whichyou cross each of the seven bridges exactly once?

Page 5: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

The Mathematics of Networks

The mathematical models we need to solve the Konigsbergproblem is a graph.

I designing travel routes (Chapters 5, 6)

I connecting networks efficiently (Chapter 7)

I scheduling tasks (Chapter 8)

I coloring regions of maps (Mini-Excursion 2)

Page 6: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested
Page 7: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Source: http://commons.wikimedia.org/wiki/File:Caffeine_3d_structure.png

Page 8: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Source: upload.wikimedia.org/wikipedia/commons/2/20/AA_route_map.PNG

Page 9: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Source: http://commons.wikimedia.org/wiki/Atlas_of_Denmark

Page 10: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Source: http://commons.wikimedia.org/wiki/File:Phylogenetic_tree.svg

Page 11: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Source: http://xkcd.com/854/

Page 12: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graphs

Things that can be modeled with graphs include

I maps

I molecules

I flow charts

I family trees

I Internet (web pages connected by links)

I Facebook/Google+ (people connected by friendship)

I Six Degrees of Kevin Bacon

I . . .

Page 13: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

The Konigsberg Bridge Problem

Page 14: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Euler and the Konigsberg Bridge Problem

The great Swiss mathematician Leonhard Euler (1707–1783)became interested in the Konigsberg problem around 1735 andpublished a solution (“Solutio problematis ad geometriam situspertinentis”) in 1741.

Euler’s intuition: The physical map doesn’t matter.What matters mathematically is just the list of whichregions are connected by bridges.

Euler’s solution opened up an entire new branch ofmathematics, now known as graph theory.

Page 15: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Euler and the Konigsberg Bridge Problem

The great Swiss mathematician Leonhard Euler (1707–1783)became interested in the Konigsberg problem around 1735 andpublished a solution (“Solutio problematis ad geometriam situspertinentis”) in 1741.

Euler’s intuition: The physical map doesn’t matter.What matters mathematically is just the list of whichregions are connected by bridges.

Euler’s solution opened up an entire new branch ofmathematics, now known as graph theory.

Page 16: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Euler and the Konigsberg Bridge Problem

The great Swiss mathematician Leonhard Euler (1707–1783)became interested in the Konigsberg problem around 1735 andpublished a solution (“Solutio problematis ad geometriam situspertinentis”) in 1741.

Euler’s intuition: The physical map doesn’t matter.What matters mathematically is just the list of whichregions are connected by bridges.

Euler’s solution opened up an entire new branch ofmathematics, now known as graph theory.

Page 17: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

The Bridges of Konigsberg

Page 18: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

The Bridges of Konigsberg

Page 19: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

The Bridges of Konigsberg

Page 20: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

The Bridges of Konigsberg

E

S

N

C

Page 21: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

The Bridges of Konigsberg

E

S

N

C

Page 22: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Euler and the Konigsberg Bridge Problem

“. . . this type of solution bears little relationship tomathematics, and I do not understand why youexpect a mathematician to produce it, rather thananyone else, for the solution is based on reasonalone, and its discovery does not depend on anymathematical principle.”

(Leonhard Euler, letter of April 1736)

Page 23: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Euler and the Konigsberg Bridge Problem

“This question is so banal, but seemed to me worthyof attention in that neither geometry, nor algebra,nor even the art of counting was sufficient to solveit.”

(Leonhard Euler, letter of March 1736)

Page 24: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Routing Problems

The Bridges of Konigsberg is an example of a routingproblem.

Other examples:

I Walking tour: must cross every bridge once

I Garbage collector: must visit every house once

I Airline traveler: get from Medicine Hat to Nairobi ascheaply as possible

Existence Question: Is an actual route possible?

Optimization Question: Which of all possible routes is thebest? (I.e., the shortest, cheapest, most efficient, etc.)

Page 25: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Unicursal Tracings

Which of these figures can you draw without ever lifting yourpen from the page, or retracing a previous line?

For which ones can you finish with your pen at the same pointit started?

Mathematically, finding a unicursal tracing is equivalent tosolving the Konigsberg Bridge Problem!

Page 26: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Unicursal Tracings

Which of these figures can you draw without ever lifting yourpen from the page, or retracing a previous line?

For which ones can you finish with your pen at the same pointit started?

Mathematically, finding a unicursal tracing is equivalent tosolving the Konigsberg Bridge Problem!

Page 27: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graphs

Definition: A graph consists of one or more vertices,attached by edges.

Frequently, we draw the vertices as points and the edges asline segments or curves.

Page 28: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

This Is Not A Graph In Math 105

Page 29: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

This Is Not A Graph In Math 105

Page 30: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graphs

Definition: A graph consists of one or more vertices,attached by edges.

Frequently, we draw the vertices as points and the edges asline segments or curves

However, it does not matter where the vertices arelocated on the page or what the edges are shaped like.

Page 31: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Different Representations of Graphs

C

DB

A

E G

FH

These five figures all represent the same graph!

Page 32: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Different Representations of Graphs

C

DB

A

E G

FH

H

G

F

E

B

A C

D

These five figures all represent the same graph!

Page 33: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Different Representations of Graphs

C

DB

A

E G

FH

H

G

F

E

B

A C

D

H

G

F

E

B

A C

D

These five figures all represent the same graph!

Page 34: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Different Representations of Graphs

C

DB

A

E G

FH

H

G

F

E

B

A C

D

H

G

F

E

B

A C

D

A C

E G

H

DB

F

These five figures all represent the same graph!

Page 35: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Different Representations of Graphs

C

DB

A

E G

FH

H

G

F

E

B

A C

D

H

G

F

E

B

A C

D

A C

E G

H

DB

F

A

E G

H

F

B

CD

These five figures all represent the same graph!

Page 36: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Different Representations of Graphs

C

DB

A

E G

FH

H

G

F

E

B

A C

D

H

G

F

E

B

A C

D

A C

E G

H

DB

F

A

E G

H

F

B

CD

These five figures all represent the same graph!

Page 37: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology

B

C

DE

A

F

AB

CD

CD

BC

BB

DE

BE

AD

Vertex set:V = {A,B ,C ,D,E ,F}

Edge set:E = {AB ,BB ,BC ,

CD,CD,DE ,BE ,AD}

The order that we write the two vertices in an edge doesn’tmatter: DE and ED mean the same thing.

Page 38: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology

B

C

DE

A

F

AB

CD

CD

BC

BB

DE

BE

AD

BA =

= DA

Vertex set:V = {A,B ,C ,D,E ,F}

Edge set:E = {AB ,BB ,BC ,

CD,CD,DE ,BE ,AD}

• The order that we write the two vertices in an edgedoesn’t matter: DE and ED mean the same thing.

Page 39: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology

B

C

DE

A

F

AB

CD

CD

BC

BB

DE

BE

AD

loop

Vertex set:V = {A,B ,C ,D,E ,F}

Edge set:E = {AB ,BB ,BC ,

CD,CD,DE ,BE ,AD}

• An edge can attach a vertex to itself (like BB); this iscalled a loop.

Page 40: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology

B

C

DE

A

F

AB

CD

CD

BC

BB

DE

BE

AD

multipleedges

Vertex set:V = {A,B ,C ,D,E ,F}

Edge set:E = {AB ,BB ,BC ,

CD,CD,DE ,BE ,AD}

• There can be multiple edges between the same end-points (like CD, which is a double edge).

Page 41: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology

B

C

DE

A

F

AB

CD

CD

BC

BB

DE

BE

AD

irrelevant!

Vertex set:V = {A,B ,C ,D,E ,F}

Edge set:E = {AB ,BB ,BC ,

CD,CD,DE ,BE ,AD}

• It doesn’t matter if edges cross each other; crossingpoints do not count as vertices.

Page 42: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology

B

C

DE

A

F

AB

CD

CD

BC

BB

DE

BE

AD

isolatedvertex

Vertex set:V = {A,B ,C ,D,E ,F}

Edge set:E = {AB ,BB ,BC ,

CD,CD,DE ,BE ,AD}

• Not every vertex has to have an edge attached to it. Avertex with no edges is called an isolated vertex.

Page 43: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graphs as Models

Graphs can be used as models for zillions of differentstructures arising in the real world.

I Facebook: vertices = people, edges = friendships

I Internet: vertices = web pages, edges = links

Page 44: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Vertices = regions of Konigsberg; edges = bridges

Page 45: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Vertices = atoms; edges = bonds

Page 46: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Vertices = cities; edges = airplane routes

Page 47: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Vertices = regions of Denmark; edges = common borders

Page 48: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Vertices = states; edges = common borders

Page 49: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Vertices = states; edges = common borders

Page 50: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Vertices = states; edges = common borders

Page 51: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Vertices = groups of species; edges = biological kinship

Page 52: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology: Adjacency and Connectedness

I Two vertices are called adjacent if they are attacheddirectly by at least one edge.

I Two vertices are called connected if they are connectedby a sequence of edges.

I Adjacent vertices are always connected, but connectedvertices are not necessarily adjacent.

Page 53: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Kansas and Colorado are adjacent

Page 54: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Kansas and Oregon are connected, but not adjacent

Page 55: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Kansas and Alaska are neither adjacent nor connected

Page 56: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology: Degree

The degree of a vertex v is the number of edges attachedto v . (A loop counts as two edges.)

B

C

DE

A

F

An odd vertex is a vertex whose degree is odd.An even vertex is a vertex whose degree is even.

Page 57: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology: Degree

The degree of a vertex v is the number of edges attachedto v . (A loop counts as two edges.)

B

C

DE

A

F

4

5

3

Degree

2

0

2

An odd vertex is a vertex whose degree is odd.An even vertex is a vertex whose degree is even.

Page 58: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology: Degree

The degree of a vertex v is the number of edges attachedto v . (A loop counts as two edges.)

B

C

DE

A

F

4

5

3

Degree

2

0

2

An odd vertex is a vertex whose degree is odd.An even vertex is a vertex whose degree is even.

Page 59: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology: Degree

Example: Konigsberg.Vertices = regions of cityDegree of a vertex = number of bridges that go to that region

E

S

N

C

Page 60: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology: Degree

Example: Konigsberg.Vertices = regions of cityDegree of a vertex = number of bridges that go to that region

E

S

N

C

degree(N) = 3

degree(E) = 3

degree(S) = 3

degree(C) = 5

Page 61: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology: Degree

Example: Map of USA.Vertices = states; degree = number of bordering states

Page 62: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Graph Terminology: Degree

Example: Map of USA.Vertices = states; degree = number of bordering states

deg(AK) = 0

deg(CA) = 3

deg(MN) = 4 deg(ME) = 1

deg(KS) = 4

deg(TN)= 8

Page 63: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Paths and Circuits

I In many graph models (maps, road networks, KevinBacon, . . . ), we want to travel from one vertex toanother by walking along the edges (“taking a trip”).

I Rule: A trip cannot use the same edge more than once,but it may pass through the same vertex more than once.

I A trip is called a path if its starting and ending verticesare different. It is called a circuit if the starting andending vertices are the same.

Page 64: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Trip #1 (a path)

Page 65: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Trip #2 (another path)

Page 66: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Trip #3 (a circuit)

Page 67: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

A circuit without beginning or end

Page 68: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Connectedness

A graph is called connected if any two vertices can be linkedby a path. Otherwise, it is disconnected.

DisconnectedConnected

Disconnected

Isolated vertices No isolated vertices

Page 69: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Connectedness

A graph is called connected if any two vertices can be linkedby a path. Otherwise, it is disconnected.

DisconnectedConnected

Disconnected

Isolated vertices No isolated vertices

Page 70: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Bridges

Removing a single edge from a connected graph can make it

disconnected. Such an edge is called a bridge.

Page 71: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Bridges

Removing a single edge from a connected graph can make it

disconnected. Such an edge is called a bridge.

Page 72: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Bridges

Removing a single edge from a connected graph can make it

disconnected. Such an edge is called a bridge.

Page 73: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Bridges

Loops cannot be bridges, because removing a loop from agraph cannot make it disconnected.

deleteloop e

e

Page 74: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Bridges

If two or more edges share both endpoints, then removing anyone of them cannot make the graph disconnected. Therefore,none of those edges is a bridge.

edgesA

C

D

B

multiple

delete

Page 75: The Seven Bridges of K onigsbergjlmartin/courses/math105... · Euler and the K onigsberg Bridge Problem The great Swiss mathematician Leonhard Euler (1707{1783) became interested

Bridges

If two or more edges share both endpoints, then removing anyone of them cannot make the graph disconnected. Therefore,none of those edges is a bridge.

edgesA

C

D

B

multiple

delete