Report in Colorability
Report in Colorability
Figure 1- A map
FIGURE 1 2-COLORABLE
METHODOLOGY
Graph Coloring
Perhaps the least obvious application of direct graph
theory comes in the form of coloring maps. On any
map it is most often the case that any two adjacent
regions are colored with a different color so as to
help distinguish their geographical features. It turns
out that the dual to this problem is to assign a color
to each vertex of a simple graph such that no two
adjacent vertices share the same color. The chromatic
number of a graph is the least number of colors
needed to ensure that the vertices can be colored with
the above property.
Three Types of Graph
Coloring
1. Vertex coloring
2. Edge coloring
3. Face coloring
Vertex Coloring
In the most common kind of graph coloring,
colors are assigned to the vertices. In, graph
theory, graph coloring is a special case of
graph labeling; it is an assignment of labels
traditionally called "colors" to elements of a
graph subject to certain constraints. In its
simplest form, it is a way of coloring the
vertices of a graph such that no two adjacent
vertices share the same color; this is called a
vertex coloring.
Chromatic Number
The least number of colors needed to
color a graph G is called its chromatic
number, χ (G) . If G is a graph without
loops, then G is k colorable if we assign
one of k colors to each vertex so that
adjacent vertices have different colors. If
G is k - colorable but not (k -1) - colorable,
we say that G is k -chromatic, or that the
chromatic number of G is k , and Write
χ(G) = .
Edge Coloring
An edge coloring assigns a color to each
edge so that no two adjacent edges share
the same color. A graph G is k -colorable
(or k -edge colorable) if its edges can be
colored with k colors so that no two
adjacent edges have the same color.
Face Coloring
Face coloring of a planar graph assigns a color
to each face or region so that no two faces that
share a common boundary have the same color.
Fig. 12 – two lines intersect the other line at two distinct points
Case 4: Each distinct pair of lines intersect at a
different point
Case 4: Each distinct pair of lines intersect at a
different point
Fig. 14 - each distinct pair of lines intersect at a different point.
Each U, V,W is of degree four.
The corresponding graph and its
coloring is
Case 5: Three lines intersect at a
single point.
Degree of V is six. The resulting graph is a cyclic graph of even
number of vertices. So we can assign two vertex colors that
alternate around the cycle. Therefore the corresponding graph is 2-
colorable.
According to the above five situations it can be shown
that two colors are sufficient to color the rectangle
when it has three lines. When three lines are intersect
the degree of vertices inside the rectangle are always
of even degree. Therefore the graph is always 2-
colorable. Assume that the assertion is true for n = p
Once p lines are drawn by joining different points on
the rectangle then the corresponding graph is 2-
colorable. Note that degree of each new vertex (if
exists) is even. Now draw the p +1th line.
Consider the following two cases.
Case 1: Assume that the new line intersects some
of the vertices already in the rectangle.