Chap3 RO ThéorieDesGraphes
Chap3 RO ThéorieDesGraphes
1
Topics
2
3.1 What Is a Graph?
Definitions
Multiple
edges
loop 3
Simple graph: A graph has no loops or multiple edges
Multiple
edges
loop
• E(G’) = { uv | uv E(G) }
w x w
x
G G’
A Clique in a graph: a set of pairwise adjacent vertices (a
complete subgraph)
An independent set in a graph: a set of pairwise nonadjacent
vertices. u
G
Example:
y v
• {x, y, u} is a clique in G. 5
• {u, w} is an independent set. x w
A graph G is bipartite if V(G) is the union of two disjoint
independent sets called partite sets of G
Also: The vertices can be partitioned into two sets such that
each set is independent
• Matching Problem
• Job Assignment Problem
Boys Workers
Girls
Jobs
6
The chromatic number of a graph G, written x(G), is the
minimum number of colors needed to label the vertices so
that adjacent vertices receive different colors
Blue Green
x(G) = 3
Blue
Red
common
member
7
Model:
– One committee being represented by a vertex
– An edge between two vertices if two corresponding
committees have common member
– Two adjacent vertices can not receive the same color
Committee 1 Committee 2
common
member
No Common Member
Same Color OK 8
Same time slot OK
Path: a sequence of distinct vertices such that two
consecutive vertices are adjacent.
• Example: (a, d, c, b, e) is a path
• (a, b, e, d, c, b, e, d) is not a path; it is a walk.
Cycle: a closed Path
• Example: (a, d, c, b, e, a) is a cycle
a b
e d
A subgraph of a graph G is a graph H such that:
– V(H) V(G) and E(H) E(G) and
– The assignment of endpoints to edges in H is the same as
in G.
9
Example: H1, H2, and H3 are subgraphs of G
a b
G c
e d
a b b
c a 10
H1 H2 H3 c
d
e d e d
Connected Graph: There exists at least one path between two
vertices.
Disconnected Graph : Otherwise
• Example:
H1 and H2 are connected.
H3 is disconnected.
a b b
c a
H1 d H2 H3 c
e d d
10
e
Assume ei is an edge whose endpoints are (vj,vk)
The vertices vj and vk are said to be adjacent.
The edge ei is said to be incident upon vj
Degree of a vertex vk is the number of edges incident upon vk .
It is denoted as d(vk)
ei
vj vk
x z a b a d b c
Complete Graph: a simple graph whose vertices are pairwise
adjacent.
45: (4, 5)
35
45 25 34
13 Disjoint, so
connected
24
14
15
23
Three drawings
14
Theorem: If two vertices are non-adjacent in the Petersen Graph,
then they have exactly one common neighbor. 1.1.38
x, y x, z
16
A u,v-walk or u,v-trail has first vertex u and last vertex v;
these are its endpoints.
W
u
P
v 17
The components of a graph G are its maximal connected
subgraphs.
q t p x
Theorem: Every graph with n vertices and k edges has at least n-k components.
Cut-edge
Cut-vertex
19
An induced subgraph:
• A subgraph obtained by deleting a set of vertices.
• We write G[T] for G- T’, where T’ =V(G)-T;
• G[T] is the subgraph of G induced by T.
Example:
Assume T:{A, B, C, D}
A B A B
E
C D C D
G G[T]
More Examples:
– G2 is the subgraph of G1 induced by (A, B, C, D)
– G3 is the subgraph of G1 induced by (B, C)
– G4 is not the subgraph induced by (A, B, C, D)
20
A B B
A B B A
C
E
C D C D
C D
G1 G2 G3 G4
C
E
C D
G1 G3
Theorem: An edge e is a cut-edge if and only if e belongs to no cycles.
C
Example:
x e y
u v
P 21
Lemma: Every closed odd walk contains an odd cycle
Odd = Odd + Even
v
Odd
Even
E D
D C
A B
A B
C D
22
C D
E F
A graph is Eulerian if it has a closed trail containing all edges.
We call a closed trail a circuit when we do not specify the first vertex
but keep the list in cyclic order.
An Eulerian circuit or Eulerian trail in a graph is a circuit or trail
containing all the edges.
An even graph is a graph with vertex degrees all even.
A vertex is odd [even] when its degree is odd [even].
A maximal path in a graph G is a path P in G that is not contained in
a longer path.
• When a graph is finite, no path can extend forever , so maximal
(non-extendible) paths exist.
24
G is regular if (G) = (G)
G is k-regular if the common degree is k.
The neighborhood of v, written Ng(v) or N(v) is the set of
vertices adjacent to v.
3-regular