Definition A Graph Is A Set of Points, Called Nodes or Vertices, Which Are Interconnected
Definition A Graph Is A Set of Points, Called Nodes or Vertices, Which Are Interconnected
Definition − A graph is a set of points, called nodes or vertices, which are interconnected
by a set of lines called edges.
A graph (denoted as G = (V, E)) consists of a non-empty set of vertices or nodes V and a set
of edges E. A vertex a represents an endpoint of an edge. An edge joins two vertices a, b
and is represented by set of vertices it connects.
Example − Let us consider, a Graph is G = (V, E) where V = {a, b, c, d} and E = {{a, b}, {a, c},
{b, c}, {c, d}}
Here V is vertex and a, b, c, d are various vertex of the graph.
Here E represents edges and {a, b}, {a, c}, {b, c}, {c, d} are various edge of the graph.
Adjacency
G1
D C
P D C
P
3-colorable graph
G2
Q R
Q R
G3 1 2 1 2
2-colorable graph
666 3 6 3
5 4 5 4
Chromatic Number
Chromatic number is the minimum number of colors
required to color a graph. For example, the chromatic
number of the following graph is 3.
D C
If the degree of the given graph is ‘d’,then it can be colored with ‘d+1’
colors.
Example:the above graph are degree 3,then the color of that graph is 4.
The chromatic number of a graph G is usually denoted by X(G).
A Graph G is said to be k-colourable , if we can properly color it with k colors.
Example: find the chromatic number of the following graph?
101 1
10 0
graph
2 5 2 5
9 6 9 So,the chromatic number of this graph is-
6
X(Petersen graph)=3
s en
8 7 8 7
Peter
3 4 3
d e f g