An Introduction To Graph Theory
An Introduction To Graph Theory
d c
closed if x = y closed trail: circuit (a-b-c-d-b-e-d-a, one draw without lifting pen) closed path: cycle (a-b-c-d-a)
Definition. Let G=(V,E) be an undirected graph. We call G connected if there is a path between any two distinct vertices of G. a b e b a e disconnected with two components d c
d c
d c c
Definition. Let G1 = (V1 , E1 ) and G2 = (V2 , E2 ) be two undirected graphs. A function f : V1 V2 is called a graph isomorphism if any two vertices x and y of G are adjacent in G1 if and only if (x) and (y) are adjacent in G 2 .
1 2 4
Regular graphs
A graph is said to be regular of degree if all local degrees are the same number . A 0-regular graph is an empty graph, a 1-regular graph consists of disconnected edges, and a 2-regular graph consists of disconnected cycles. The first interesting case is therefore 3-regular graphs, which are called cubic graphs.
Theorem. For
Example: a regular graph: each vertex has the same degree Is it possible to have a 4-regular graph with 10 edges? 2|E| = 4|V| = 20, |V|=5 with 15 edges? 2|E| = 4|V| = 30 not possible!!! possible (K5)
Find a way to walk about the city so as to cross each bridge exactly once and then return to the starting point.
All degrees are odd. Hence no Euler circuit for the Konigsberg bridges problem !
Can you think of an algorithm to construct an Euler circuit? Corollary. An Euler trail exists in G if and only if G is connected and has exactly two vertices of odd degree. two odd degree vertices a add an edge b
Theorem. A directed Euler circuit exists in G if and only if G is connected and in-degree(v)=out-degree(v) for all vertices v.
Exercise
Euler's House. Baby Euler has just learned to walk. He is curious to know if he can walk through every doorway in his house exactly once, and return to the room he started in. Will baby Euler succeed? Can baby Euler walk through every door exactly once and return to a different place than where he started? What if the front door is closed?
Planar Graphs
Definition. A graph (or multigraph) G is called planar if G can be drawn in the plane with its edges intersecting only at vertices of G. Such a drawing of G is called an embedding of G in the plane. Example: K1,K2,K3,K4 are planar, Kn for n>4 are nonplanar.
K4
K5
Planar Graphs
bipartite graph complete bipartite graphs (Km,n)
K4,4
Planar graphs
elementary subdivision (homeomorphic operation)
Definition. G1 and G2 are called homeomorphic if they are isomorphic or if they can both be obtained from the same loop-free undirected graph H by a sequence of elementary subdivisions. a c e d e b a c d e b a c d e b a c d b
Planar Graphs
Degree of a region (deg(R)): the number of edges traversed in a shortest closed walk about the boundary of R. two different embeddings a R2 c R1 d f deg(R1)=5,deg(R2)=3 deg(R3)=3,deg(R4)=7 abghgfda deg(R5)=4,deg(R6)=3 deg(R7)=5,deg(R8)=6 R3 g h b R4 R6
R8 R7
R5
i =1
deg( Ri ) = 18 = deg( Ri ) = 2 9 = 2 | E |
i= 5
a c
2 3
3 6 5 e g d 4 4 f 6 5
It is possible to have isomorphic graphs with respective duals that are not isomorphic.
Cut set
Cut-set: a subset of edges whose removal increase the number of components Example b a d e f cut-sets: {(a,b),(a,c)}, {(b,d),(c,d)},{(d,f)},... h
a bridge
For planar graphs, cycles in one graph correspond to cut-sets in a dual graphs and vice versa.
x y
x y
The method works only for bipartite graphs. The Hamilton path problem is still NP-complete when restricted to bipartite graphs.
a b 3 colors are needed. e a: Red b: Green c: Red d: Blue e: Red d c In general, it's a very difficult problem (NP-complete). (Kn)=n (bipartite graph)=2
a B c Y d R
b G Re
Ge
G' e