9.2: graph terminology. special simple graphs complete graphsk 1,… cyclesc 3,… wheelsw 3,…...
TRANSCRIPT
![Page 1: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/1.jpg)
9.2: Graph Terminology
![Page 2: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/2.jpg)
Special Simple Graphs
• Complete Graphs K1,…
• Cycles C3,…
• Wheels W3,…
• N-cubes Q1,…
• Complete bipartite K2,2,…
![Page 3: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/3.jpg)
Special Graphs (see Fig01)Complete graphs K n
Cycle graphsC n
W heelsW n
![Page 4: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/4.jpg)
complete bipartite: K 2,3 and K 3,3
Complete bipartite graphs K n,m
![Page 5: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/5.jpg)
N-cubes: Q1, Q2, Q3, and Q4 (see Fig02)
n-cubes
![Page 6: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/6.jpg)
Basic Terminology – Undirected Graphs
Def: If e={u,v} is an edge, u and v are adjacent.The edge e is incident with vertices u and v. e connects u and v.The degree of a vertex v, deg(v), is the number
of edges incident with it, with loops contributing twice.
![Page 7: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/7.jpg)
Examples of degree
b c d deg(a)=deg(b)=
a deg(c)=deg(d)=
e f g deg(e)=deg(f)=deg(g)=
![Page 8: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/8.jpg)
Theorem 1: The Handshaking Theorem:
• Let G=(V,E) be an undirected graph with e edges.
• Then = ____
![Page 9: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/9.jpg)
Questions
Example: How many edges are there in a graph with 10 vertices each of degree 6?
Question: Could you construct a graph with 1 vertex of odd degree?
![Page 10: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/10.jpg)
Questions
Could you construct a graph: With 2 vertices of odd degree?
With 3, 4, 5,… vertices of odd degree?
![Page 11: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/11.jpg)
Thm. 2: Theorem 2: An undirected graph has an even number of
vertices of odd degree.
Proof idea: Let V1 be the set of vertices of odd degree and V2 be the set of vertices of even degree in the undirected graph G=(V,E).
Then, using Thm. 1, ___= = +
…
Therefore, there are an even # of vertices of odd degree.
![Page 12: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/12.jpg)
Directed Graphs- Basic Terms
TermsIf (u,v) is an edge, u is adjacent to v, and v is
adjacent from uu is the initial vertex, and v is the terminal vertex
![Page 13: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/13.jpg)
Deg - (v) and Deg + (v) – Def and Ex
Deg - (v) is the in degree of v: the number of edges with v an the terminal vertex
Deg + (v) is the out degree of v: the number of edges with v as the initial vertex
in outa b c Deg - (a) Deg + (a)
Deg - (b) Deg + (b)d e f Deg - (c) Deg + (c)
Deg - (d) Deg + (d) Deg - (e) Deg + (e) Deg - (f) Deg + (f)
![Page 14: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/14.jpg)
Thm. 3
Theorem 3: Let G=(V,E) be a graph with directed edgesThen = ______ Def: The underlying undirected graph is the
undirected graph that results from ignoring directions of edges on a directed graph.
![Page 15: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/15.jpg)
Bipartite
Def: A simple graph G is called bipartite if its vertex set V can be partitioned into disjoint nonempty sets V1 and V2 such that:If there is an edge between 2 vertices, then one vertex is an element of V1 and one vertex is an element of V2.
![Page 16: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/16.jpg)
Which of the examples are bipartite?
Q: Which of the examples of the worksheet are bipartite?
Cycles, complete graphsC3 C4 C5 C6
(see Fig01)
![Page 17: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/17.jpg)
Is this graph bipartite? (see gr_th_ex1)
b
a c
g
f de
![Page 18: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/18.jpg)
Is this graph bipartite? (see gr_th_ex2)
a b
f c
e d
![Page 19: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/19.jpg)
Complete Bipartite Graphs
Km,n is the graph that is partitioned into two subsets V1 and V2 of m and n vertices where
There is an edge between two vertices iff one vertex is in V1 and the other is in V2.
Examples:
![Page 20: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/20.jpg)
Local Area Networks
• Star Topology, Ring Topology, Hybrid
• Parallel Processing v. Serial
![Page 21: 9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…](https://reader036.vdocuments.us/reader036/viewer/2022062518/56649ec75503460f94bd2ee7/html5/thumbnails/21.jpg)
New graphs from old
• Def: A subgraph of G=(V,E) is a graph H=(W,F) where W V and F E.
• Def: The union of two simple graphs G1=(V1,E1) and G2=(V2,E2) is the simple graph G1 G2=( V1 V2, E1 E2)