SlideShare a Scribd company logo
1 of 3
Download to read offline
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 INTEGRATIONAbdurrahmaan Kazi
 
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 ProgrammingNeeldhara 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 FieldMd. Al-Amin Khandaker Nipu
 
Convolution using Scilab
Convolution using ScilabConvolution using Scilab
Convolution using Scilabsachin achari
 
Deletion operation in array(ds)
Deletion operation in array(ds)Deletion operation in array(ds)
Deletion operation in array(ds)chauhankapil
 
KRUSKAL'S algorithm from chaitra
KRUSKAL'S algorithm from chaitraKRUSKAL'S algorithm from chaitra
KRUSKAL'S algorithm from chaitraguest1f4fb3
 
Admission in india
 Admission in india Admission in india
Admission in indiaEdhole.com
 
MS Excel functions
MS Excel functionsMS Excel functions
MS Excel functionsameermudasar
 
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

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 DatabasesIJMER
 
Final project report
Final project reportFinal project report
Final project reportssuryawanshi
 
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 answersAnimesh 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 RecordLakshmi Sarvani Videla
 
Introduction of calculus in programming
Introduction of calculus in programmingIntroduction of calculus in programming
Introduction of calculus in programmingAfaq Siddiqui
 
SupportVectorRegression
SupportVectorRegressionSupportVectorRegression
SupportVectorRegressionDaniel K
 
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 ProjectSurya Chandra
 
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 @ ReadingCirclecharlingual
 
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).docxanhlodge
 
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 ImagesShanglin 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 systemAlireza Mirzaei
 
Multinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkMultinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkDB Tsai
 
Alpine Spark Implementation - Technical
Alpine Spark Implementation - TechnicalAlpine Spark Implementation - Technical
Alpine Spark Implementation - Technicalalpinedatalabs
 
Optimization Techniques
Optimization TechniquesOptimization Techniques
Optimization TechniquesAjay Bidyarthy
 
Learning Convolutional Neural Networks for Graphs
Learning Convolutional Neural Networks for GraphsLearning Convolutional Neural Networks for Graphs
Learning Convolutional Neural Networks for Graphspione30
 

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
 
SupportVectorRegression
SupportVectorRegressionSupportVectorRegression
SupportVectorRegression
 
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
 
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
 
Multinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache SparkMultinomial Logistic Regression with Apache Spark
Multinomial Logistic Regression with Apache Spark
 
Alpine Spark Implementation - Technical
Alpine Spark Implementation - TechnicalAlpine Spark Implementation - Technical
Alpine Spark Implementation - Technical
 
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

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 

Recently uploaded (20)

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 

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