graph theory introducton graph theory vertex:a point. an intersection of two lines (edges). edge:a...

15
Graph Theory Introducton

Upload: nelson-carr

Post on 17-Jan-2016

226 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph Theory

Introducton

Page 2: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph Theory

Vertex: A point. An intersection of two lines (edges).

Edge: A line (or curve) connecting two vertices.

Loop: An edge that connects a vertex to itself only.

Page 3: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph TheoryEx) Represent the "Konigsberg Bridge“

problem using a vertex-edge graph.

* Vertices represent locations.* Edges represent “connections” between those locations.

A

B C

D

A

B C

D

Page 4: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph TheoryEx) Represent this map using a vertex-edge graph.

Hint: On map problems, place vertices relative to their actual locations on the map.

O

K

CU

W

N* Edges represent borders in a map problem.

Page 5: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph TheoryEx) Represent a floor plan using a vertex-edge graph.

Outside P

HF

J

C

M

O

Page 6: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph TheoryThe degree of a vertex is the number of edges "entering" the vertex.

Degree2 1

2

Degree3

12 3 Degree

41

2 3

4

Page 7: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph TheoryOdd and Even vertices

If the degree of a vertex is an odd number, then the vertex is considered an odd vertex.

If the degree of the vertex is an even number, then the vertex is considered an even vertex.

Page 8: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph TheoryEx) How many odd vertices are there in this graph?

Degree4

Degree4

Degree3

Degree4

Degree1

2 odd vertices F

Degree0

Page 9: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph TheoryA path is a sequence of adjacent vertices and the edges connecting them.

Given the graph to the left, some examples of paths could be:

ABC

BCDD

CDBCA

Page 10: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph TheoryA circuit is a path that begins and ends at the same vertex.

Given the graph to the left, some examples of circuits could be:

ABCACDDBAC

Page 11: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph TheoryOn a connected graph, you can draw a path from one vertex to any other vertex.

Page 12: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph TheoryIf a graph is not connected, it is disconnected.

Page 13: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph TheoryA bridge is an edge that if removed from a connected graph would create a disconnected graph.

Page 14: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge

Graph Theory

Page 15: Graph Theory Introducton Graph Theory Vertex:A point. An intersection of two lines (edges). Edge:A line (or curve) connecting two vertices. Loop:An edge