Views 
   PDF Download PDF Downloads: 926

 Open Access -   Download full article: 

Basic Graphs Terminologies, Their Representation and Applications

Vaibhav Shukla and Somnath Ghosh

Jagran Institute of Management 620, W Block Saket Nagar, Kanpur - 208 014 (India).

Article Publishing History
Article Received on :
Article Accepted on :
Article Published :
Article Metrics
ABSTRACT:

In the present study, general graph terminologies are explained with their representation and application in wide fields like operational research, genetics, physics and chemistry. Basically in the study of graph theory we can represent the relationship between various objects in very simple and convenient way in the form of picture.

KEYWORDS: Graphs; Genetics; Physics and Chemistry

Copy the following to cite this article:

Shukla V, Ghosh S. Basic Graphs Terminologies, Their Representation and Applications. Orient. J. Comp. Sci. and Technol;4(1)


Copy the following to cite this URL:

Shukla V, Ghosh S. Basic Graphs Terminologies, Their Representation and Applications. Orient. J. Comp. Sci. and Technol;4(1). Available from: http://www.computerscijournal.org/?p=2360


Introduction

The one of the applied branch of mathematics is Graph Theory. In the field of study there are a wide range of applications of graph theory the some of them are in operational research, genetics, physics, chemistry etc. Basically in the study of graph theory we can represent the relationship between various objects in very simple and convenient way in the form of picture. For example in the field of chemistry if we want to represent chemical bonding between carbon atoms and the hydrogen atoms of C2H6 then with the help of graph we can easily represent this as follows

Vol4_No1_bac_vai_scm_1

The above figure shows the graph representation of the C2H6 and represent how the two molequels of carbon and the six hydrogen molequels are arranged.

There are various other practical applications of graph theory which we used in our daily life for example we want to go from kanpur to mumbai and we dontknow the shortest route between the kanpur to mumbai then in this case there are various path for reaching from kanpur to mumbai for example as the graph shows we can go from kanpur to mumbai via delhi or via madras or we can go directly from kanpur to mumbai and the shortest distance coverd by this journey is to go directly from kanpur to mumbai so we can say that the convienent journey is to go directly from kanpur to mumbai hence we can say that if we have the graph then we can find out the shortest path between kanpur to mumbai and we use this path.

Vol4_No1_bac_vai_grp_1

The definition of graph shows that graph is the representation of the objects in the form of picture and the picture consist of points called the vertices and the lines these lines are called the edges and in this representation each edge joins exactly two vertices.

Definition

The mathematical definition of the graph shows that the graph is the collection of number of vertices and edges and in the graph there is set of vertices which is denoted by the V or V(G) and is called the vertex set of the graph G and there is a set of edges which is denoted by E or E(G) called the set of edges of graph G.Hence we can say that a graph G=(V,E) is the finite collection of vertices and edges where Vis the vertices or nodes of the graph G and E is the edges or line or link of the graph G.

Order of the Graph

The total no of vertices in the grph G is called the order of the graph G. It is also called the cardinality of the graph G and is represented by |V|.For example the vardinality or order of the graph2 is seven because the total no of vertices in this graph is seven.

Size of the graph

The total no of edges in the graph G is called the size of the graph G and is represented by |E|. For example, in the graph 2 there are total of ten edges so the size of the graph g is ten.

Graph 2

Graph 2

Click here to View Graph

 

More Definitions

Self Loop

An edge whose starting and ending point are same are called the self loop or we can say that the edge which is associated with the same vetex pair say (Vj,Vj) are called the self loop.In the graph-3 the edge e9 is the self loop whose starting and ending point is the vertex v6.

Parallel edge

The two ore more then two edges are called the parallel edges if these are associated with thee same vertex pair, say,(Vi,Vj). In the graph-3 the edges e5 and e7 are the parallel edges which are associated with the same vertex pair (V4, V5)

Isolated Vertex

In a Graph a vertex with degree zero is called the isolated vertex or in other word we can say that the vertex which is not associated with any edge is called the isolated vertex. In the graph -3 the vertex V1 is called the isolated vertex.

Pendant Vertex

A vertex with degree one is called the pendent vertex of the graph G or in other world if there is only one edge associated with any vetex then the degree of that vertex is one and vertex is called the pendant vertex.In the graph -3 the vertex v7 is called the pendant vertex.

The degree of the Vertex

The total number of edges incident on a vertex is called the degree of that vertex. When we counted the degree of the vertex then the self-loop is counted two times.

Figure 3

Figure 3

Click here to View figure

 

In the above graph we calculate the degree of vertex as follows-

Deg(V1)=No of edges associated with the vertex V1=1(Because only edge e1 is associated with this vertex)

Deg(V4)=No of edges associated with the vertex V4=3(Because only edges e5 and e7are associated with this vertex)

Deg(V6)= No of edges associated with the vertex V6=4(Because edges e8,e6 and e9 are associated with this vertex and e9 is self loop hence it counted twice)

Walk

In a Graph G=(V,E) where V is the set of vertices and E is the set of edges ,a finite alternative seequence of vertices and edges in such a way rhat each of the edge in the seequence is preeceded and followed bt the vertices and starting and ending point of the seequence are the verices are called the walk if in this seequence no edge appear more then once however the vertices may appear more than once.The starting and the ending vertices of the walk is called the terminal vertices.

If a walk begins and end with the same vertices then the walk is called an closed walk otherwise this walk is called open walk.

Figure 4

Figure 4

Click here to View figure

 

Now in the above figure V1,e2,V3,e6,V5,e5,V4,e4,V2 is an walk in the above graph similar to this walk we can find out many of the other walk say V1,e1,V2,e4,V4,e5,V5 is also an walk.

Path

In a Graph G an open walk is called an Path if in a walk no vertex appears more then once. Hence we can say that a path is a finite alternative seequence of vertices and edges in which no of the verices and edges appears more then once.The total number of edges in the path is called the length of the path.

In  the  above  graph V1,e1,V2,e4,V4,e5,V5,e6,V3 is an path.

Cuicuit

In a graph G a closed walk in which no vertex appears more then once accept terminal vertices is called the circuit.

In the above Graph V1,e1,V2,e3,V3,e2,V1 is an cuircuit.

Types of Graph

In this heading we define the various types of graphs as follows-

Simple Graph

A graph G=(V,E) with vertex set V and edge set E is called a simple graph if it doesn’t contain any self loop and parallel edges.

Figure 5

Figure 5: Simple Graph

Click here to View figure

 

In the above graph there is no any self loop and parallel edges so this is a Simple graph.

Finite and Infinite Graphs

A graph G=(V,E) with vertex set V and edge set E is called a Finite Graph if it contains finite number of vertices and edges and graph is a infinite graph if it has infinite number of vertices abd edges.

Figure 6

Figure 6 : (a)Finite Graph   (b) Infinite Graph

Click here to View figure

 

In the above figures the graph (a) contains the finite no of vertices and edges so this is a finite graph and the graph (b) contains the infinite no of vertices and edges so this is called infinite graph

Null Graph

A graph having only vertex set is called the null graph in this case we can say that E(G)={0}i.e. empty

Figure 7

Figure 7: Null Graph

Click here to View figure

 

In this graph we have only finite set of vertex and the edge set is empty so this is called null graph.

Complete or Full graph

A graph without self loop and parallel edges is called a complete graph if there exist an edge between each and every pair of vertices.A complete graph of n vertices is denoted by Kn.

Figure 8

Figure 8: Complete graph

Click here to View figure

 

In the above graph there is no self loop and parellel edges and there is an edge between each and every pair of vertices.

Multi Graph

A graph which don’t have any self-loops but must have some parallel edges are called the multi graph.

Figure 9

Figure 9: Multi-Graph

Click here to View figure

 

In the above graph we have only set of parallel edges so this is a multi graph.

Pseudo Graph

A graph which contains self loops but don’t have any parallel edges are called Pseudo Graph.

Figure 10

Figure 10: Pseudo Graph

Click here to View figure

 

Regular Graph

A graph without self loops and parallel edges is called the regular graph if degree of each and every vertex are same in other world we can say that the simple graph in which the degree of all vertices are same is called the Regular Graph.

Figure 11

Figure 11: Regular Graph

Click here to View figure

 

Here in the above graph the degree of all the vertices are same that is two hence this is a regular graph.

Bipartite Graph

A graph G=(V,E) are called the bipartite graph if the vertex set of the graph G is divided in to two non empty disjoint subsets V1(G) and V2(G) in such a way that each edge e of the graph g has its one end point in the vertex set V1(G) and the other end point is in the other vertex set say V2 (G)

Here the above graph isan bipartite graph because we can divide the vertex set 

V(G)={V1,V2,V3,V4,V5} in two partitions say {V1,V2,V3} and {V4,V5} and each of the vertex in one partition join with the vertex in the other partition.

Figure 12

Figure 12: Bipartite Graph

Click here to View figure

 

Weighted Graph

The Graph G=(V,E) is called the weighted graph if the vertices or (and) edges contains some additional information such as assigning a positive number to the edges of G is called weighted graph. These numbers are called the weight of the edges.

The best examples of this graph is the railway tracks between different stations here the different cities shows the vertices of the graph G and the railway tracks are the edges of the graph. The edges in the graph has some additional information that is the distance between different cities.

Figure 13

Figure 13: Weighted graph

Click here to View figure

 

Cycle Graph

A  graph consists of  n  vertices  V1 , V2, V3,……, Vnandedges (V1,V2),(V2,V3)(V3,V4)… (Vn,V1) is called the cycle graph denoted by Cn. In a cycle graph there are equal no of vertices and edges.

Figure 14

Figure 14: Cycle Graph

Click here to View figure

 

Digraph or Directed Graph

A graph G=(V,E) is called the directed graph if in the graph there is an edge between the vertices Vi and Vj with an arrow directed from Vi to Vj.If the direction is from Vi toVj then Vi is the source for this edge and Vj is the sink of this edge.

Figure 15

Figure 15: Directed Graph Planar Graph

Click here to View figure

 

A Graph G=(V,E) is called the planar graph if we can form some geometrical representation of graph in such a way that no of the two edges of the graph crosses each other.

Figure 16

Figure 16(a): Planar Graph, (b): Non Planar Graph

Click here to View figure

 

In the Figure both the graph are the complete graph of four vertices but the graph (a) is a planar graph and the graph (b) is the non planar graph this shows that if we represent the graph (b) in such a way that the edges of the graph are not intersecting each other is called planar graph.

Connected Graphs, Disconnected graphs, and Components

If in a graph there exist a path between each and every pair of vertex then the graph is called the connected graph otherwise the graph is called the disconnected graph.

Figure 17

Figure 17(a): Connected graph (b): Disconnected Graph

Click here to View figure

 

We can see that in a dissconnected graph there are two ore more connected graphs each of the graphs are the connected subgraphs of the graph G .So in adissconnected graph there are two or more connected subgraphs and each of the connected subgraph is called the components of the dissconnected graph.

In the above figure the figure 16(a) is the example of connected graph because in this graph there exist an path for each and every pair of vertices but the graph 16(b) is an example of the disconnected graph because there exist vertex pairs between which no path exist for example for vertex pair (V1,V5),(V2,V5) etc. are the vertex pair for which no path exist hence this is a dissconnected graph.

Representation of the Graph

The graph can be reprented in many ways the some of them are disscussed here. The graph representation are applicable for both types of graph say directed and undirected graph hence we disscuss here both whenever applicable.

Adjacency Matrix

The adjacency matrix of the graph G with no parallel edges contains only binary elements say 0 and1.The elements of the adjacency matrix A are as follows

Figure 18

Figure 18(a): Undirected Graph (b): Adjacency Matrix for graph 17(a)

Click here to View figure

 

The adjacency matrix for this graph is

Figure 19

Figure 19(a): Directed Graph b): Adjacency matrix for figure 18(a)

Click here to View figure

 

aij=1 If there is an edge between ith and jth vertices = 0 If there is no edge between them

The examples shows the adjacency matrix for both directed and undirected graphs as follows

Properties

For an undirected graph with no parallel edges and self loop if we have the adjacency matrix then the degree of any vertex in the graph g is the number of 1 in the row or collum correspond to that vertex in the matrix.

The total number of non zero elements in the graph represents the number of edges in the graph.

Incidence Matrix

The entries of the incidence matrix of the Graph G=(V,E) where V is the set of vertices and E is the set of edges are

Aij = 1 if jth edge Ej is incident on the ithvertexVi0 otherwise.

This matrix is called the incident matrix or vertex edge matrix.

Figure 20

Figure 20 (a)-(b): Incidence matrix of graph

Click here to View figure

 

Incident matrix For Directed Graph

Let G=(V,E) is an directed graph with no self loop then the entries of the incidence matrix for the directed graph are as follows

Aij= 1 if the jth edge is incident out of ith vertex -1 if the jth edge is incident in to ith vertex 0 if the jth edge is not incident on ith vertex

Figure 21

Figure 21(a) (b): Incident Matrix For graph 20(a)

Click here to View figure

 

Linked List Representation of Graph

The linked list representation of the graph is more efficient then the matrix reprentation.In this representation each vertex of the graph G is represented by a linked list structure.

Figure 22

Figure 22(a) (b) Linked List Representation Of Graph 21(a)

Click here to View figure

 

Colouring of the Graph

In the colouring of the Graph we colour all the vertices of the graph G in such a way that no two of the adjacent vertices have the same colour.A graph in which every vertex is painted according to the proper colouring then the graph is called a properly coloured graph.

In the above Graph we want to colour the all the vertices pof the graph G in such a way that no two adjacent vertices have the same colour so first we assign the colour red to vertex V1 now the other two vertices are adjacent to the vertices V1 hence we can not assign colour red to vertices V2 and V3 so we assign the colour green to the vertex V2 at last vertex V3 are adjacent to the vertex V1 and V2 so we can not assign colour red and green to V3 so we assign colour Black to V3. The three colours are required for the proper colouring of this graph the total number of colours requiered for the proper colouring of the graph G is called the chromatic number of that graph. So the chromatic number of the above graph is three.

Figure 23

Figure 23

Click here to View figure

 

Reffernces

  1. Berge, Claude (1958), Théorie des graphes et ses applications, Collection Universitaire de Mathématiques, II, Paris: Dunod . English edition, Wiley 1961; Methuen & Co, New York 1962; Russian, Moscow 1961; Spanish, Mexico 1962; Roumanian, Bucharest 1969; Chinese, Shanghai 1963; Second printing of the 1962 first English edition, Dover, New York 2001.
  2. Biggs, N.; Lloyd, E.; Wilson, R., Graph Theory, 1736–1936, Oxford University Press (1986).
  3. Bondy, J.A.; Murty, U.S.R., Graph Theory, Springer (2008)
  4. Chartrand, Gary, Introductory Graph Theory, Dover, ISBN 0-486-24775-9 (1985).
  5. Gibbons, Alan, Algorithmic Graph Theory, Cambridge University Press (1985).
  6. Golumbic, Martin, Algorithmic Graph Theory and Perfect Graphs, Academic Press (1980).
  7. Harary, Frank, Graph Theory, Reading, MA: Addison-Wesley (1969).

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.