29
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Embed Size (px)

Citation preview

Page 1: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Institut für Kartographie und GeoinformationProf. Dr. Lutz Plümer

Geoinformation IVorlesung 8

WS 2000/2001

Graphen

Page 2: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

2 2

Übersicht

• VRS Liniennetzplan der Bonner Innenstadt

• Kartogramm des Liniennetzplanes

• GraphenIsomorphe

• Graphen

• Vereinfachung von Netzwerken

• Definitionen

• Anwendungsbeispiel

Page 3: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

3 3

VRS Liniennetzplan der Bonner Innenstadt

Page 4: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

4 4

Kartogramm des Liniennetzplanes

Page 5: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

5 5

Graphen

Knoten

Page 6: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

6 6

Graphen

Knoten

Kanten

2

24

1

3

2

3

2

3

1

Page 7: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

7 7

Graphen

Knoten

Kanten

Pfad

B

A 2

24

1

3

2

3

2

3

1

Page 8: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

8 8

Graphen

Knoten

Kanten

Pfad

B

A 2

24

1

3

2

3

2

3

1

Page 9: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

9 9

Graphen

Knoten

Kanten

Pfad

B

A 2

24

1

3

2

3

2

3

1

Page 10: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

10 10

Graphen

Knoten

Kanten

Pfad

A 2

24

1

3

2

3

2

3

1

B

Page 11: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

11 11

Graphen

Knoten

Kanten

Pfad

B

A 2

24

1

3

2

3

2

3

1

Page 12: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

12 12

Graphen

Knoten

Kanten

Pfad

B

A 2

24

1

3

2

3

2

3

1

Page 13: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

13 13

Graphen

Knoten

Kanten

Pfad

kürzester Pfad

B

A 2

24

1

3

2

3

2

3

1

Page 14: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

14 14

Graphen

Knoten

Kanten

Pfad

kürzester Pfad

B

A 2

24

1

3

2

3

2

3

1

Page 15: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

15 15

Graphen

Knoten

Kanten

Pfad

kürzester Pfad

B

A 2

24

1

3

2

3

2

3

1

Page 16: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

16 16

Graphen

Knoten

Kanten

Pfad

kürzester Pfad

A 2

24

1

3

2

3

2

3

1

B

Page 17: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

17 17

Graphen

Gerichteter Graph

Page 18: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

18 18

Graphen

Nicht zusammenhängend

Page 19: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

19 19

Graphen

ZusammenhängendTrennende Kante (Isthmus)

Page 20: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

20 20

Graphen

Trennender Knoten

Page 21: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

21 21

Isomorphe Graphen

J

M

L

K

J

M

L

K J

M

L

K

A

B

CD

AB

C

DA

B

CD

Page 22: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

22 22

Graphisomorphie - Definition

• Zwei Graphen sind isomorph, wenn eine bijektive Abbildung existiert, die die Knoten-Kanten-Adjazenzen respektiert.

Page 23: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

23 23

Vereinfachung von Netzwerken

Beispiel: Eisenbahnnetz

Karte mit geographischen Koordinaten

Generalisieren von Verbindungen

Entfernung des Kontextes

Entzerren von Verbindungen

Page 24: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

24 24

Definitionen I

• Ein ungerichteter Graph G(V,E) ist eine Menge V von Knoten zusammen mit einer Menge E von Kanten. Eine Kante ist eine Menge (ungeordnetes Paar) von je 2 Knoten.

e = {x,y} x Vy V

• Wenn e = {x,y} dann sind x und e bzw. y und e inzident.

• Zwei Kanten {x,y} und {y,z} sind adjazent.

• Ein Pfad ({a1,a2},{a2,a3},{a3,a4}, ... ,{an-1,an}) von a1 nach an ist ein Folge von adjazenten Kanten.

Page 25: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

25 25

Definitionen II

• Ein Graph heißt zusammenhängend, wenn man zu jedem Paar von Knoten einen Pfad findet; sonst nicht zusammenhängend.

• Ein Pfad von a nach a heißt Zyklus.• Ein Graph heißt zyklenfrei, wenn er keine Zyklen

besitzt. Beispiel: Baum (zyklenfrei + zusammenhängend)

• Grad eines Knotens: Zahl der inzidenten KantenBeispiel: In Landkarten haben Knoten mindestens den Grad 2.

Page 26: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

26 26

Definitionen III

• Trennende Kante e eines zusammenhängenden Graphen G („Isthmus“): Entfernung von e würde G nicht zusammenhängend machen. Beispiel: Sylt + Hindenburg-Damm

• Trennender Knoten v eines zusammenhängenden Graphen G: Entfernung von v würde G nicht zusammenhängend machen.Beispiel: Attentat auf das World Trade Center in New York

Page 27: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

27 27

Definitionen IV

• Gerichtete Graphen unterscheiden sich von ungerichteten dadurch, daß die Kanten nicht Mengen (ungerichtet) sondern Paare (gerichtet) sind.

C

BA

zusammenhängend

C

BA

zusammenhängend

C

BA

nicht zusammenhängendkein Pfad von A nach B

A nach CC nach B

Page 28: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

28 28

Definitionen V

• Isomorphie zweier GraphenG = (V,E)G‘= (V‘,E‘)G G‘ gilt, wenn V V‘ es existieren bijektive

E E‘ (eineindeutige) Abbildungen

• Ebener Graph: – Jeder Knoten hat Koordinaten – Die (geraden) Kanten sind paarweise kreuzungsfrei

kein ebener Graph ebener Graph

Page 29: Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation I Vorlesung 8 WS 2000/2001 Graphen

Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8 Lutz Plümer - Geoinformation - 1./5. Semester - WS 00/01 - Vorlesung 8

29 29

Anwendungsbeispiel

• Routenplanung für Autofahrer (Taxifahrer) in der Kölner Innenstadt und Umland auf Basis von Graphen– Ziel: UML-Diagramm– Frage: Reichen die heute diskutierten Begriffe für diesen

Zweck aus?Was fehlt?

– Szenario: Sylvester/Karneval, Kunde von Kneipe x in Krankenhaus y fahren.