A graph is a collection of vertices (points) joined by edges (line segments). A pair of vertices are
adjacent
if they are connected by an edge.
Coloring a graph refers to assigning colors to its vertices. A graph is said to be properly colored if every pair of adjacent vertices receive different colors.
Consider the above graph with 4 vertices and 4 edges. This graph is denoted as . If you are permitted to use 6 different colors, how many proper coloring does have ?
Note:
1. Vertices are adjacent if they are joined by an edge (line).
2.The coloring that is in the figure is an example of proper coloring.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let's name the vertices as A,B,C and D clockwise from top left. Since we are using 6 colors, we can color A in 6 ways. Since A and B are adjacent, B can be colored in 5 ways.
Now C can be given the same color as A or a different one.
If C is given the same color as A , D can be colored in 5 ways. Totally 6 × 5 × 5 =150 ways.
If C is given different color, which can be done in 4 ways, D can be colored in 4 ways.Totally 6 × 5 × 4 × 4 =480 ways.
All in total 150+480=630 ways.