SlideShare a Scribd company logo
Energy of Some Simple Graphs: MATLAB
Approach
1
Sweta Srivastav,2
Sangeeta Gupta, ∗
Abstract—In the present paper we have investigated
MATLAB program to find the energy of the graph.
The energy of the Graph E(G) of G is the sum of
absolute value of its eigen values. There are many
research on energy of the graph, we have investigated
the very new MATLAB program for finding energy of
cycle, wheel and cyclic cubic graphs for n values and
we consider example of all the graph for n ≥ 20.
Keywords: MATLAB program, Energy Graph, cy-
cle,wheel , cyclic cubic graph
1 Introduction
In the present paper we consider simple,finite and
undirected graph, for standard terminology and notation
we follow R.Balakrishnan,K.Rangnanthan [2].while for
some terminology we follow R.Balakrishnan [1].In 1978
I.Gutman [3] defined the energy of a graph G as the
sum of absolute values of the eigen value of graph G and
denoted it by E(G)i.e E(G) =
n
i=1 |λi|.
Here we have investigated the MATLAB program
for finding the energy of some simple graph in general-
ized form with the help of these program we can achieve
the result without any efforts for any value of n.
2 Algorithms:
Algorithm 2.1: To generate the MATLAB programme
for finding the energy of cycle for n ≥ 3.
Open MATLAB Editor window and write the following
program and the program will save as the function file,
we use plotcycle here. Generate Cn by entering the
value of n, we will get our cycle Cn. Then by run the
programe we achive the energy of Cn. The programe is
as follows:
function[Energy] = plotcycle(n)
% To write the program to find the energy of cycle.
% v be the number of vertices.
% e be the number of edges.
% ’A’ will give you Adjacency Matrix.
∗Sharda University, Greater Noida,India.Email:
sweta.srivastav@sharda.ac.in, sangeeta.gupta@sharda.ac.in
% ’K’ results Eigen Values.
% ’E’ results Energy of the graph.
v = [1 : n];
e = [2 : n, 1];
G = graph(v, e);
A = adjacency(G);
B = full(A);
K = eig(B);
E = sum(abs(K))
plot(G)
title([ Cyclicgraphforn = , num2str(n)])
gtext([ EnergyofGraph = , num2str(E)])
To illustrate above program see below example. In
command window write plotcycle(40), then press
enter, the output will be E=50.8248.
Figure 1: cycleC40
Algorithm 2.2: To generate the Matlab program for
finding the energy of wheel graph Wn.
Open MATLAB Editor window and write the fol-
lowing program and the program will save as the
International Journal of Computer Science and Information Security (IJCSIS),
Vol. 15, No. 9, September 2017
7 https://sites.google.com/site/ijcsis/
ISSN 1947-5500
function file, we use plotwheel here. Generate Wn by
entering the value of n, we will get our wheel Wn. Then
by run the program we achive the energy of Wn. The
program is as follows:
function[energy] = plotwheel(n)
% v be the number of vertices.
% e be the number of edges.
% ’A’ will give you Adjacency Matrix.
% ’K’ results Eigen Values.
% ’E’ results Energy of the graph.
v = [2 : n];
e = [3 : n, 2];
G = graph(v, e);
F = addedge(G, 1, 2 : n);
A = adjacency(F );
B = full(A);
K = eig(B);
E = sum(abs(K))
plot(F )
title([ W heelgraphforn = , num2str(n)])
gtext([ EnergyofGraph = , num2str(E)])
To illustrate above program see below example. In
command window write plotwheel(23), then press
enter, the output will be E=35.6984.
Figure 2: wheelW23
Algorithm 2.3: To generate the MATLAB program for
finding the energy of cycle 3-regular graph (Cyclic cubic
graph).
Open MATLAB Editor window and write the fol-
lowing program and the program will save as the
function file, we use plotcyclecubic here.
Generate cycle 3-regular graph by entering the value of
n, we will get cycle 3-regular graph .
Then by run the program we achive the energy of cycle
3-regular graph. The program is as follows:
function[energy] = plotcyclecubic(n)
% v be the number of vertices.
% e be the number of edges.
% ’A’ will give you Adjacency Matrix.
% ’K’ results Eigen Values.
% ’E’ results Energy of the graph.
v = [1 : n];
e = [2 : n, 1];
g = graph(v, e);
F = addnode(g, n);
H = addedge(F, 1 : n, n + 1 : 2 ∗ n);
I = addedge(H, [n+1 : 2∗n], [n+2 : 2∗n, n+1]);
A = adjacency(I);
B = full(A);
K = eig(B);
E = sum(abs(K))
plot(I)
title([ CyclicCubicgraphforn = , num2str(n)])
gtext([ EnergyofGraph = , num2str(E)])
To illustrate above program see below example. In
command window write plotcyclecubic(23), then
press enter, the output will be E=66.0814.
Figure 3: cyclic cubic graph 23
.
3 Conclusions and Future Work
The program proved here to find the energy of the
graph is very easy task for any big value of n.The
energy of a graph is one of the emerging concept within
graph theory.The energy of many graph is known, to
investigate the similar program, is the open research area.
International Journal of Computer Science and Information Security (IJCSIS),
Vol. 15, No. 9, September 2017
8 https://sites.google.com/site/ijcsis/
ISSN 1947-5500
References
[1] R.Balakrishnan, The enrgy of a graph,Lin. algebra
Appl. 387(2004), 287-295.
[2] R.Balakrishnan,K.Ranganathan, A textbook of
graph theory, Springer, Newn york, 2000.
[3] I.Gutman, The energy of a graph, Ber. Math.
Statist.Sekt.Forschungsz. Graz 103(1978) 1-22.
[4] J. Gross and J. Yellen, Graph Theory and its appli-
cations,CRC Press.
[5] F. Harary, Graph Theory, Addition-Wesley, Reading
Mass,1972.
[6] J. A. Gallian, A dynamic survey of graph labeling,
Electronic Journal of Combinatorics, (2010), DS6.
[7] G.S.Bloom and S.W.Golomb, Applications of
numbered undirected graphs, Proceedings of IEEE,
165(4)(1977), 562-570.
[8] J.A Bondy, U.S.R Murty Graph Theory with Appli-
cations,The MacMillan Press Ltd (1976).
[9] S Lang,Algebra,Addison-Wesley (1993).
[10] H.B Walikar, I Gutman, P.R Hampiholi, H.S
Ramane, Graph Theory Notes New York Acad. Sci., 41
(2001), pp. 14-16.
[11] Stephen J. Chapman, MATLAB programming for
engineers, Chris Carson, Thomson Corporation(2008).
International Journal of Computer Science and Information Security (IJCSIS),
Vol. 15, No. 9, September 2017
9 https://sites.google.com/site/ijcsis/
ISSN 1947-5500

More Related Content

What's hot

MapMap-Reduce recipes in with c#
MapMap-Reduce recipes in with c#MapMap-Reduce recipes in with c#
MapMap-Reduce recipes in with c#
Erik Lebel
 
TO FIND AREA UNDER THE CURVE USING INTEGRATION
TO FIND AREA UNDER THE CURVE USING INTEGRATIONTO FIND AREA UNDER THE CURVE USING INTEGRATION
TO FIND AREA UNDER THE CURVE USING INTEGRATION
Abdurrahmaan Kazi
 
Calendar class in java
Calendar class in javaCalendar class in java
Calendar class in java
Muthukumaran Subramanian
 
A Virtual Machine Placement Algorithm for Energy Efficient Cloud Resource Res...
A Virtual Machine Placement Algorithm for Energy Efficient Cloud Resource Res...A Virtual Machine Placement Algorithm for Energy Efficient Cloud Resource Res...
A Virtual Machine Placement Algorithm for Energy Efficient Cloud Resource Res...
SuvomDas
 
14 - 08 Feb - Dynamic Programming
14 - 08 Feb - Dynamic Programming14 - 08 Feb - Dynamic Programming
14 - 08 Feb - Dynamic Programming
Neeldhara Misra
 
Efficiently Performing Arithmetic Operation over Fq18 Extension Field
Efficiently Performing Arithmetic Operation over Fq18 Extension FieldEfficiently Performing Arithmetic Operation over Fq18 Extension Field
Efficiently Performing Arithmetic Operation over Fq18 Extension Field
Md. Al-Amin Khandaker Nipu
 
Date class
Date classDate class
Convolution using Scilab
Convolution using ScilabConvolution using Scilab
Convolution using Scilab
sachin achari
 
Deletion operation in array(ds)
Deletion operation in array(ds)Deletion operation in array(ds)
Deletion operation in array(ds)
chauhankapil
 
R9
R9R9
KRUSKAL'S algorithm from chaitra
KRUSKAL'S algorithm from chaitraKRUSKAL'S algorithm from chaitra
KRUSKAL'S algorithm from chaitra
guest1f4fb3
 
Admission in india
 Admission in india Admission in india
Admission in india
Edhole.com
 
Chap02alg
Chap02algChap02alg
Chap02alg
Munkhchimeg
 
Linear sorting
Linear sortingLinear sorting
Linear sorting
Krishna Chaytaniah
 
MS Excel functions
MS Excel functionsMS Excel functions
MS Excel functions
ameermudasar
 
sduGroupEvent
sduGroupEventsduGroupEvent
sduGroupEvent
Thomas Sølund
 
2015 NWA poster
2015 NWA poster2015 NWA poster
2015 NWA poster
Kristin Sherlock
 
From linking to integration of energy system models and computational general...
From linking to integration of energy system models and computational general...From linking to integration of energy system models and computational general...
From linking to integration of energy system models and computational general...
IEA-ETSAP
 

What's hot (18)

MapMap-Reduce recipes in with c#
MapMap-Reduce recipes in with c#MapMap-Reduce recipes in with c#
MapMap-Reduce recipes in with c#
 
TO FIND AREA UNDER THE CURVE USING INTEGRATION
TO FIND AREA UNDER THE CURVE USING INTEGRATIONTO FIND AREA UNDER THE CURVE USING INTEGRATION
TO FIND AREA UNDER THE CURVE USING INTEGRATION
 
Calendar class in java
Calendar class in javaCalendar class in java
Calendar class in java
 
A Virtual Machine Placement Algorithm for Energy Efficient Cloud Resource Res...
A Virtual Machine Placement Algorithm for Energy Efficient Cloud Resource Res...A Virtual Machine Placement Algorithm for Energy Efficient Cloud Resource Res...
A Virtual Machine Placement Algorithm for Energy Efficient Cloud Resource Res...
 
14 - 08 Feb - Dynamic Programming
14 - 08 Feb - Dynamic Programming14 - 08 Feb - Dynamic Programming
14 - 08 Feb - Dynamic Programming
 
Efficiently Performing Arithmetic Operation over Fq18 Extension Field
Efficiently Performing Arithmetic Operation over Fq18 Extension FieldEfficiently Performing Arithmetic Operation over Fq18 Extension Field
Efficiently Performing Arithmetic Operation over Fq18 Extension Field
 
Date class
Date classDate class
Date class
 
Convolution using Scilab
Convolution using ScilabConvolution using Scilab
Convolution using Scilab
 
Deletion operation in array(ds)
Deletion operation in array(ds)Deletion operation in array(ds)
Deletion operation in array(ds)
 
R9
R9R9
R9
 
KRUSKAL'S algorithm from chaitra
KRUSKAL'S algorithm from chaitraKRUSKAL'S algorithm from chaitra
KRUSKAL'S algorithm from chaitra
 
Admission in india
 Admission in india Admission in india
Admission in india
 
Chap02alg
Chap02algChap02alg
Chap02alg
 
Linear sorting
Linear sortingLinear sorting
Linear sorting
 
MS Excel functions
MS Excel functionsMS Excel functions
MS Excel functions
 
sduGroupEvent
sduGroupEventsduGroupEvent
sduGroupEvent
 
2015 NWA poster
2015 NWA poster2015 NWA poster
2015 NWA poster
 
From linking to integration of energy system models and computational general...
From linking to integration of energy system models and computational general...From linking to integration of energy system models and computational general...
From linking to integration of energy system models and computational general...
 

Similar to Energy of Some Simple Graphs: MATLAB Approach

EE201_Assignment2
EE201_Assignment2EE201_Assignment2
EE201_Assignment2
Khaled Mohammed
 
A Subgraph Pattern Search over Graph Databases
A Subgraph Pattern Search over Graph DatabasesA Subgraph Pattern Search over Graph Databases
A Subgraph Pattern Search over Graph Databases
IJMER
 
Final project report
Final project reportFinal project report
Final project report
ssuryawanshi
 
Graph Analytics and Complexity Questions and answers
Graph Analytics and Complexity Questions and answersGraph Analytics and Complexity Questions and answers
Graph Analytics and Complexity Questions and answers
Animesh Chaturvedi
 
Introduction to Data Science With R Lab Record
Introduction to Data Science With R Lab RecordIntroduction to Data Science With R Lab Record
Introduction to Data Science With R Lab Record
Lakshmi Sarvani Videla
 
Introduction of calculus in programming
Introduction of calculus in programmingIntroduction of calculus in programming
Introduction of calculus in programming
Afaq Siddiqui
 
Exploring Support Vector Regression - Signals and Systems Project
Exploring Support Vector Regression - Signals and Systems ProjectExploring Support Vector Regression - Signals and Systems Project
Exploring Support Vector Regression - Signals and Systems Project
Surya Chandra
 
SupportVectorRegression
SupportVectorRegressionSupportVectorRegression
SupportVectorRegression
Daniel K
 
Finding Top-k Similar Graphs in Graph Database @ ReadingCircle
Finding Top-k Similar Graphs in Graph Database @ ReadingCircleFinding Top-k Similar Graphs in Graph Database @ ReadingCircle
Finding Top-k Similar Graphs in Graph Database @ ReadingCircle
charlingual
 
Computation Assignment Help
Computation Assignment Help Computation Assignment Help
Computation Assignment Help
Programming Homework Help
 
Exhaustive Combinatorial Enumeration
Exhaustive Combinatorial EnumerationExhaustive Combinatorial Enumeration
Exhaustive Combinatorial Enumeration
Mathieu Dutour Sikiric
 
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxSAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
anhlodge
 
Matlab solved tutorials 2017 june.
Matlab solved tutorials  2017 june.Matlab solved tutorials  2017 june.
Matlab solved tutorials 2017 june.
musadoto
 
Building 3D Morphable Models from 2D Images
Building 3D Morphable Models from 2D ImagesBuilding 3D Morphable Models from 2D Images
Building 3D Morphable Models from 2D Images
Shanglin Yang
 
How to design a linear control system
How to design a linear control systemHow to design a linear control system
How to design a linear control system
Alireza Mirzaei
 
Alpine Spark Implementation - Technical
Alpine Spark Implementation - TechnicalAlpine Spark Implementation - Technical
Alpine Spark Implementation - Technical
alpinedatalabs
 
Multinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkMultinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache Spark
DB Tsai
 
Optimization Techniques
Optimization TechniquesOptimization Techniques
Optimization Techniques
Ajay Bidyarthy
 
Learning Convolutional Neural Networks for Graphs
Learning Convolutional Neural Networks for GraphsLearning Convolutional Neural Networks for Graphs
Learning Convolutional Neural Networks for Graphs
pione30
 
Dk32696699
Dk32696699Dk32696699
Dk32696699
IJERA Editor
 

Similar to Energy of Some Simple Graphs: MATLAB Approach (20)

EE201_Assignment2
EE201_Assignment2EE201_Assignment2
EE201_Assignment2
 
A Subgraph Pattern Search over Graph Databases
A Subgraph Pattern Search over Graph DatabasesA Subgraph Pattern Search over Graph Databases
A Subgraph Pattern Search over Graph Databases
 
Final project report
Final project reportFinal project report
Final project report
 
Graph Analytics and Complexity Questions and answers
Graph Analytics and Complexity Questions and answersGraph Analytics and Complexity Questions and answers
Graph Analytics and Complexity Questions and answers
 
Introduction to Data Science With R Lab Record
Introduction to Data Science With R Lab RecordIntroduction to Data Science With R Lab Record
Introduction to Data Science With R Lab Record
 
Introduction of calculus in programming
Introduction of calculus in programmingIntroduction of calculus in programming
Introduction of calculus in programming
 
Exploring Support Vector Regression - Signals and Systems Project
Exploring Support Vector Regression - Signals and Systems ProjectExploring Support Vector Regression - Signals and Systems Project
Exploring Support Vector Regression - Signals and Systems Project
 
SupportVectorRegression
SupportVectorRegressionSupportVectorRegression
SupportVectorRegression
 
Finding Top-k Similar Graphs in Graph Database @ ReadingCircle
Finding Top-k Similar Graphs in Graph Database @ ReadingCircleFinding Top-k Similar Graphs in Graph Database @ ReadingCircle
Finding Top-k Similar Graphs in Graph Database @ ReadingCircle
 
Computation Assignment Help
Computation Assignment Help Computation Assignment Help
Computation Assignment Help
 
Exhaustive Combinatorial Enumeration
Exhaustive Combinatorial EnumerationExhaustive Combinatorial Enumeration
Exhaustive Combinatorial Enumeration
 
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxSAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
 
Matlab solved tutorials 2017 june.
Matlab solved tutorials  2017 june.Matlab solved tutorials  2017 june.
Matlab solved tutorials 2017 june.
 
Building 3D Morphable Models from 2D Images
Building 3D Morphable Models from 2D ImagesBuilding 3D Morphable Models from 2D Images
Building 3D Morphable Models from 2D Images
 
How to design a linear control system
How to design a linear control systemHow to design a linear control system
How to design a linear control system
 
Alpine Spark Implementation - Technical
Alpine Spark Implementation - TechnicalAlpine Spark Implementation - Technical
Alpine Spark Implementation - Technical
 
Multinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkMultinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache Spark
 
Optimization Techniques
Optimization TechniquesOptimization Techniques
Optimization Techniques
 
Learning Convolutional Neural Networks for Graphs
Learning Convolutional Neural Networks for GraphsLearning Convolutional Neural Networks for Graphs
Learning Convolutional Neural Networks for Graphs
 
Dk32696699
Dk32696699Dk32696699
Dk32696699
 

Recently uploaded

哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
AI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptxAI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptx
architagupta876
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
Gino153088
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
ElakkiaU
 
Data Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptxData Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptx
ramrag33
 
Software Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.pptSoftware Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.ppt
TaghreedAltamimi
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
Certificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi AhmedCertificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi Ahmed
Mahmoud Morsy
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
bijceesjournal
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
VANDANAMOHANGOUDA
 
cnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classicationcnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classication
SakkaravarthiShanmug
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 

Recently uploaded (20)

哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
AI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptxAI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptx
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
 
Data Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptxData Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptx
 
Software Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.pptSoftware Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.ppt
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
Certificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi AhmedCertificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi Ahmed
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
 
ITSM Integration with MuleSoft.pptx
ITSM  Integration with MuleSoft.pptxITSM  Integration with MuleSoft.pptx
ITSM Integration with MuleSoft.pptx
 
cnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classicationcnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classication
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 

Energy of Some Simple Graphs: MATLAB Approach

  • 1. Energy of Some Simple Graphs: MATLAB Approach 1 Sweta Srivastav,2 Sangeeta Gupta, ∗ Abstract—In the present paper we have investigated MATLAB program to find the energy of the graph. The energy of the Graph E(G) of G is the sum of absolute value of its eigen values. There are many research on energy of the graph, we have investigated the very new MATLAB program for finding energy of cycle, wheel and cyclic cubic graphs for n values and we consider example of all the graph for n ≥ 20. Keywords: MATLAB program, Energy Graph, cy- cle,wheel , cyclic cubic graph 1 Introduction In the present paper we consider simple,finite and undirected graph, for standard terminology and notation we follow R.Balakrishnan,K.Rangnanthan [2].while for some terminology we follow R.Balakrishnan [1].In 1978 I.Gutman [3] defined the energy of a graph G as the sum of absolute values of the eigen value of graph G and denoted it by E(G)i.e E(G) = n i=1 |λi|. Here we have investigated the MATLAB program for finding the energy of some simple graph in general- ized form with the help of these program we can achieve the result without any efforts for any value of n. 2 Algorithms: Algorithm 2.1: To generate the MATLAB programme for finding the energy of cycle for n ≥ 3. Open MATLAB Editor window and write the following program and the program will save as the function file, we use plotcycle here. Generate Cn by entering the value of n, we will get our cycle Cn. Then by run the programe we achive the energy of Cn. The programe is as follows: function[Energy] = plotcycle(n) % To write the program to find the energy of cycle. % v be the number of vertices. % e be the number of edges. % ’A’ will give you Adjacency Matrix. ∗Sharda University, Greater Noida,India.Email: sweta.srivastav@sharda.ac.in, sangeeta.gupta@sharda.ac.in % ’K’ results Eigen Values. % ’E’ results Energy of the graph. v = [1 : n]; e = [2 : n, 1]; G = graph(v, e); A = adjacency(G); B = full(A); K = eig(B); E = sum(abs(K)) plot(G) title([ Cyclicgraphforn = , num2str(n)]) gtext([ EnergyofGraph = , num2str(E)]) To illustrate above program see below example. In command window write plotcycle(40), then press enter, the output will be E=50.8248. Figure 1: cycleC40 Algorithm 2.2: To generate the Matlab program for finding the energy of wheel graph Wn. Open MATLAB Editor window and write the fol- lowing program and the program will save as the International Journal of Computer Science and Information Security (IJCSIS), Vol. 15, No. 9, September 2017 7 https://sites.google.com/site/ijcsis/ ISSN 1947-5500
  • 2. function file, we use plotwheel here. Generate Wn by entering the value of n, we will get our wheel Wn. Then by run the program we achive the energy of Wn. The program is as follows: function[energy] = plotwheel(n) % v be the number of vertices. % e be the number of edges. % ’A’ will give you Adjacency Matrix. % ’K’ results Eigen Values. % ’E’ results Energy of the graph. v = [2 : n]; e = [3 : n, 2]; G = graph(v, e); F = addedge(G, 1, 2 : n); A = adjacency(F ); B = full(A); K = eig(B); E = sum(abs(K)) plot(F ) title([ W heelgraphforn = , num2str(n)]) gtext([ EnergyofGraph = , num2str(E)]) To illustrate above program see below example. In command window write plotwheel(23), then press enter, the output will be E=35.6984. Figure 2: wheelW23 Algorithm 2.3: To generate the MATLAB program for finding the energy of cycle 3-regular graph (Cyclic cubic graph). Open MATLAB Editor window and write the fol- lowing program and the program will save as the function file, we use plotcyclecubic here. Generate cycle 3-regular graph by entering the value of n, we will get cycle 3-regular graph . Then by run the program we achive the energy of cycle 3-regular graph. The program is as follows: function[energy] = plotcyclecubic(n) % v be the number of vertices. % e be the number of edges. % ’A’ will give you Adjacency Matrix. % ’K’ results Eigen Values. % ’E’ results Energy of the graph. v = [1 : n]; e = [2 : n, 1]; g = graph(v, e); F = addnode(g, n); H = addedge(F, 1 : n, n + 1 : 2 ∗ n); I = addedge(H, [n+1 : 2∗n], [n+2 : 2∗n, n+1]); A = adjacency(I); B = full(A); K = eig(B); E = sum(abs(K)) plot(I) title([ CyclicCubicgraphforn = , num2str(n)]) gtext([ EnergyofGraph = , num2str(E)]) To illustrate above program see below example. In command window write plotcyclecubic(23), then press enter, the output will be E=66.0814. Figure 3: cyclic cubic graph 23 . 3 Conclusions and Future Work The program proved here to find the energy of the graph is very easy task for any big value of n.The energy of a graph is one of the emerging concept within graph theory.The energy of many graph is known, to investigate the similar program, is the open research area. International Journal of Computer Science and Information Security (IJCSIS), Vol. 15, No. 9, September 2017 8 https://sites.google.com/site/ijcsis/ ISSN 1947-5500
  • 3. References [1] R.Balakrishnan, The enrgy of a graph,Lin. algebra Appl. 387(2004), 287-295. [2] R.Balakrishnan,K.Ranganathan, A textbook of graph theory, Springer, Newn york, 2000. [3] I.Gutman, The energy of a graph, Ber. Math. Statist.Sekt.Forschungsz. Graz 103(1978) 1-22. [4] J. Gross and J. Yellen, Graph Theory and its appli- cations,CRC Press. [5] F. Harary, Graph Theory, Addition-Wesley, Reading Mass,1972. [6] J. A. Gallian, A dynamic survey of graph labeling, Electronic Journal of Combinatorics, (2010), DS6. [7] G.S.Bloom and S.W.Golomb, Applications of numbered undirected graphs, Proceedings of IEEE, 165(4)(1977), 562-570. [8] J.A Bondy, U.S.R Murty Graph Theory with Appli- cations,The MacMillan Press Ltd (1976). [9] S Lang,Algebra,Addison-Wesley (1993). [10] H.B Walikar, I Gutman, P.R Hampiholi, H.S Ramane, Graph Theory Notes New York Acad. Sci., 41 (2001), pp. 14-16. [11] Stephen J. Chapman, MATLAB programming for engineers, Chris Carson, Thomson Corporation(2008). International Journal of Computer Science and Information Security (IJCSIS), Vol. 15, No. 9, September 2017 9 https://sites.google.com/site/ijcsis/ ISSN 1947-5500