2 - Types of Graph
2 - Types of Graph
Graphs
Types of Graph
• Directed Graph
• Complete Graph
• Bipartite Graph
• Isomorphic Graph
• Planar Graph
• Euler Graph
• Hamiltonian Graph
Bipartite Graph
• A simple graph G is called bipartite if its vertex
set V can be partitioned into two disjoint sets
V1 and V2 such that every edge in the graph
connects a vertex in V1 and a vertex in V2
• No edge in G connects either two vertices in
V1 or two vertices in V2
• When this condition holds, we call the pair
(V1, V2) a bipartition of the vertex set V of G.
Bipartite Graph
• Red vertices are in one set
• Black vertices are in another set
Bipartite Graph
• C6 (cycle graph of length 6) is bipartite,
because its vertex set can be partitioned into
the two sets V1 = {v1, v3, v5} and V2 = {v2, v4,
v6}, and every edge of C6 connects a vertex in
V1 and a vertex in V2.
Theorem
• A simple graph is bipartite if and only if it is
possible to assign one of two different colors
to each vertex of the graph so that no two
adjacent vertices are assigned the same color.
Complete Bipartite Graphs
• The complete bipartite graph Km,n is the
graph that has its vertex set partitioned into
two subsets of m and n vertices, respectively
such that every vertex of the first set is
connected to every vertex of the second set.
Complete Bipartite Graphs
• The complete bipartite graphs K2,3, K3,3,
K3,5, and K2,6 are as follows:
Subgraph
• A subgraph of a graph G = (V, E) is a graph
H = (W, F), where W V and F E. A subgraph
H of G is a proper subgraph of G if H G
Eg. A subgraph of K5 is as follows:
Isomorphism
• The simple graphs G1 = (V1, E1) and G2 = (V2, E2) are
isomorphic if there is a one-to-one and onto function
f from V1 to V2 with the property that a and b are
adjacent in G1 if and only if f(a) and f(b) are adjacent
in G2, for all a and b in V1. Such a function f is called
an isomorphism.
• In other words, when two simple graphs are
isomorphic, there is a one-to-one correspondence
between vertices of the two graphs that preserves
the adjacency relationship.
Isomorphism
• Isomorphic simple graphs must have the same
number of edges
• the degrees of the vertices in isomorphic
simple graphs must be the same.
Isomorphism
• The number of vertices, the number of edges,
and the number of vertices of each degree are
all invariants under isomorphism. If any of
these quantities differ in two simple graphs,
these graphs cannot be isomorphic.
Problem
Show that the graphs G = (V, E) and H = (W, F),
displayed in Figure, are isomorphic.
• Solution: The graphs G and H both have eight vertices and 10 edges. They
also both have four vertices of degree two and four of degree three. Because
these invariants all agree
• However, G and H are not isomorphic.
• To see this, note that because deg(a) = 2 in G, a must correspond to either t,
u, x, or y in H, because these are the vertices of degree two in H. However,
each of these four vertices in H is adjacent to another vertex of degree two in
H, which is not true for a in G.
Planar Graphs
• Next, note that there is no way to place the final vertex V6 without forcing a
crossing. If V6 is in R1, then the edge between V6 and V3 cannot be drawn without
a crossing. If V6 is in R 21 , then the edge between V2 and V6 cannot be drawn
without a crossing. If V6 is in R22, then the edge between V1 and V6 cannot be
drawn without a crossing.