SlideShare une entreprise Scribd logo
1  sur  8
Presented By:
Abhishek Pachisia
B.Tech-IT(V Sem)
   090102801
Graph is a set of edges and vertices.

Graph can be represented in the form of matrix.

Different matrix that can be formed are:

   1. Incidence Matrix

   2. Adjacency Matrix

   3. Cut-Set Matrix

   4. Circuit Matrix

   5. Path Matrix
Edge connected to the vertex is known as incidence edge to that vertex.

If vertex is incident on vertex then put 1 else 0.                   Vertex       Edges
                                                                        1          a, b
                                                                        2          a, b, c, f
  aij =1, if edge ej is incident on vertex vi                           3          c, d, g
       =0, otherwise                                                    4          d, e
                                                                        5          d, e, f, g, h
                                                                        6          h
     V1        a                         V6
                       V2   f   V5 h
           b                                                            Edges
                                                              a   b    c d e         f    g h
                                                         V1   1   1    0   0   0     0    0   0
                                                         V2   1   1    1   0   0     1    0   0
                                                Vertex

                   c                 e                   V3   0   0    1   1   1     0    1   0
                                                         V4   0   0    0   1   1     0    1   0
                                                         V5   0   0    0   1   1     1    1   1
                                                         V6   0   0    0   0   0     0    0   1
               V3           d   V4
 If two vertices are connected by single path than they are known as adjacent vertices.

 If vertex is connected to itself then vertex is said to be adjacent to itself.

If vertex is adjacent then put 1 else 0.

     V1       a                                 V6
                      V2       f   V5       h                            Vertices
          b                                                          V1 V2 V3 V V5 V6
                                                                                4
                                                                V1   0 1 0 0 0 0
                                                                V2   1 0 1 0 1 0

                                                     Vertices
                  c                     e                       V3   0 1 0 1 1 0
                                                                V4   0 0 1 1 1 0
                                                                V5   0 1 1 1 0 1
                                                                V6   0 0 0 0 0 1


              V3           d       V4
Cut set is a “Set of edges in a graph whose removal leaves the graph disconnected”.

If edge of graph is a part of given cut set then put 1 else 0.
                                                                Cut Set   Edges
  Cij =1, if  jth
               cutset contains edge                               1       f, g, d
      =0, otherwise                                               2       c, g, e
                                                                  3       h
     V1       a                                 V6                4       a, b
                      V2       f   V5       h
          b                                                                      Edges
                                                                      a   b    c d e        f   g   h

                                                                1     0   0    0    1   0   1   1   0
                                                     Cut Sets

                  c                     e                       2     0   0    1    0   1   0   1   0
                                                                3     0   0    0    0   0   0   0   1
                                                                4     1   1    0    0   0   0   0   0


                V3         d       V4
Circuit can be defined as “A close walk in which no vertex/edge can appear twice”.

If edge of graph is a part of given circuit then put 1 else 0.
                                                        Circuit   Edges
  Cij =1, if circuit contains edge                         1      d, e, g
      =0, otherwise                                        2      c, f, g
                                                           3      c, d, e, f
     V1       a                         V6                 4      a, b
                      V2   f   V5 h
          b                                                              Edges
                                                              a   b    c d e           f   g   h

                                                        1     0   0    0       1   1   0   1   0
                                             Circuits

                  c                 e                   2     0   0    1       0   0   1   1   0
                                                        3     0   0    1       1   1   1   0   0
                                                        4     1   1    0       0   0   0   0   0


              V3           d   V4
Path can be defined as “A open walk in which no vertex/edge can appear twice”.

If edge of graph is a part of given path then put 1 else 0.             Path       Edges
                                                                          1         a, f, h
  P( Vj,Vi)=1,if edge is on path                        Ex: P ( V1,V6)    2         a, c, g, h
            =0, otherwise                                                 3         a, c, d, e, h
                                                                          4         b, f, h
V1       a                         V6                                     5         b, c, g, h
                                                                          6         b,c, d, e, h
                 V2   f   V5 h                                Edges
     b
                                                    a   b   c d e        f      g   h

                                                1   1   0   0   0    0   1      0   1
                                                        0
                                        Paths



             c                 e                2   1       1   0    0   0      1   1
                                                3   1   0   1   1    1   0      0   1
                                                4   0   1   0   0    0   1      0   1
                                                5   0   1   1   0    0   0      1   1
                                                6   0   1   1   1    1   0      0   1
         V3           d   V4
Matrix Representation Of Graph

Contenu connexe

Tendances (20)

Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
 
17. Trees and Graphs
17. Trees and Graphs17. Trees and Graphs
17. Trees and Graphs
 
Trees
Trees Trees
Trees
 
Graphs
GraphsGraphs
Graphs
 
A* algorithm
A* algorithmA* algorithm
A* algorithm
 
Linked list
Linked listLinked list
Linked list
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
 
Graph theory
Graph theory Graph theory
Graph theory
 
Array data structure
Array data structureArray data structure
Array data structure
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
 
Depth first search [dfs]
Depth first search [dfs]Depth first search [dfs]
Depth first search [dfs]
 
Operator precedance parsing
Operator precedance parsingOperator precedance parsing
Operator precedance parsing
 
Bfs and Dfs
Bfs and DfsBfs and Dfs
Bfs and Dfs
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - Graph
 
Graph algorithm
Graph algorithmGraph algorithm
Graph algorithm
 
Dijkstra's Algorithm
Dijkstra's Algorithm Dijkstra's Algorithm
Dijkstra's Algorithm
 
Breadth first search and depth first search
Breadth first search and  depth first searchBreadth first search and  depth first search
Breadth first search and depth first search
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 
trees in data structure
trees in data structure trees in data structure
trees in data structure
 
Hashing in datastructure
Hashing in datastructureHashing in datastructure
Hashing in datastructure
 

En vedette (7)

Exergy
ExergyExergy
Exergy
 
Exergy
ExergyExergy
Exergy
 
Exergy
ExergyExergy
Exergy
 
Torsion
TorsionTorsion
Torsion
 
Ocular torsion
Ocular torsionOcular torsion
Ocular torsion
 
Shaft & Torsion
Shaft & TorsionShaft & Torsion
Shaft & Torsion
 
Cast iron its types , properties and its applications....
Cast iron its types , properties and its applications....Cast iron its types , properties and its applications....
Cast iron its types , properties and its applications....
 

Similaire à Matrix Representation Of Graph

Discrete maths assignment
Discrete maths assignmentDiscrete maths assignment
Discrete maths assignmentKeshav Somani
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data StructureAnuj Modi
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data StructureAnuj Modi
 
TALAT Lecture 2301: Design of Members Example 8.2: Torsion constants for holl...
TALAT Lecture 2301: Design of Members Example 8.2: Torsion constants for holl...TALAT Lecture 2301: Design of Members Example 8.2: Torsion constants for holl...
TALAT Lecture 2301: Design of Members Example 8.2: Torsion constants for holl...CORE-Materials
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)ijceronline
 
Graph data structure
Graph data structureGraph data structure
Graph data structureTech_MX
 
Signal Processing Course : Wavelets
Signal Processing Course : WaveletsSignal Processing Course : Wavelets
Signal Processing Course : WaveletsGabriel Peyré
 

Similaire à Matrix Representation Of Graph (9)

Discrete maths assignment
Discrete maths assignmentDiscrete maths assignment
Discrete maths assignment
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data Structure
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data Structure
 
Graph
GraphGraph
Graph
 
TALAT Lecture 2301: Design of Members Example 8.2: Torsion constants for holl...
TALAT Lecture 2301: Design of Members Example 8.2: Torsion constants for holl...TALAT Lecture 2301: Design of Members Example 8.2: Torsion constants for holl...
TALAT Lecture 2301: Design of Members Example 8.2: Torsion constants for holl...
 
07 - Graphs
07 - Graphs07 - Graphs
07 - Graphs
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
Graph data structure
Graph data structureGraph data structure
Graph data structure
 
Signal Processing Course : Wavelets
Signal Processing Course : WaveletsSignal Processing Course : Wavelets
Signal Processing Course : Wavelets
 

Plus de Abhishek Pachisia (20)

Telecom Industry
Telecom IndustryTelecom Industry
Telecom Industry
 
Strategic alignment model (SAM)
Strategic alignment model (SAM)Strategic alignment model (SAM)
Strategic alignment model (SAM)
 
V.G. siddhartha
V.G. siddharthaV.G. siddhartha
V.G. siddhartha
 
Boeing- The Frontiers
Boeing- The FrontiersBoeing- The Frontiers
Boeing- The Frontiers
 
Top Management of 5 recognized comapanies
Top Management of 5 recognized comapaniesTop Management of 5 recognized comapanies
Top Management of 5 recognized comapanies
 
Fourier transform
Fourier transformFourier transform
Fourier transform
 
Inference engine
Inference engineInference engine
Inference engine
 
Work breakdown structure
Work breakdown structureWork breakdown structure
Work breakdown structure
 
IEEE 802.11
IEEE 802.11IEEE 802.11
IEEE 802.11
 
Cloud Service Models
Cloud Service ModelsCloud Service Models
Cloud Service Models
 
Exception handling in Java
Exception handling in JavaException handling in Java
Exception handling in Java
 
Perl
PerlPerl
Perl
 
Rpc
RpcRpc
Rpc
 
Program Evaluation and Review Technique (PERT)
Program Evaluation and Review Technique (PERT)Program Evaluation and Review Technique (PERT)
Program Evaluation and Review Technique (PERT)
 
Hydrogen energy
Hydrogen energyHydrogen energy
Hydrogen energy
 
Rms titanic
Rms titanicRms titanic
Rms titanic
 
Vb.net (loop structure)
Vb.net (loop structure)Vb.net (loop structure)
Vb.net (loop structure)
 
Tree
TreeTree
Tree
 
File System Implementation
File System ImplementationFile System Implementation
File System Implementation
 
Exception handling
Exception handlingException handling
Exception handling
 

Dernier

THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 

Dernier (20)

THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 

Matrix Representation Of Graph

  • 2. Graph is a set of edges and vertices. Graph can be represented in the form of matrix. Different matrix that can be formed are: 1. Incidence Matrix 2. Adjacency Matrix 3. Cut-Set Matrix 4. Circuit Matrix 5. Path Matrix
  • 3. Edge connected to the vertex is known as incidence edge to that vertex. If vertex is incident on vertex then put 1 else 0. Vertex Edges 1 a, b 2 a, b, c, f aij =1, if edge ej is incident on vertex vi 3 c, d, g =0, otherwise 4 d, e 5 d, e, f, g, h 6 h V1 a V6 V2 f V5 h b Edges a b c d e f g h V1 1 1 0 0 0 0 0 0 V2 1 1 1 0 0 1 0 0 Vertex c e V3 0 0 1 1 1 0 1 0 V4 0 0 0 1 1 0 1 0 V5 0 0 0 1 1 1 1 1 V6 0 0 0 0 0 0 0 1 V3 d V4
  • 4.  If two vertices are connected by single path than they are known as adjacent vertices.  If vertex is connected to itself then vertex is said to be adjacent to itself. If vertex is adjacent then put 1 else 0. V1 a V6 V2 f V5 h Vertices b V1 V2 V3 V V5 V6 4 V1 0 1 0 0 0 0 V2 1 0 1 0 1 0 Vertices c e V3 0 1 0 1 1 0 V4 0 0 1 1 1 0 V5 0 1 1 1 0 1 V6 0 0 0 0 0 1 V3 d V4
  • 5. Cut set is a “Set of edges in a graph whose removal leaves the graph disconnected”. If edge of graph is a part of given cut set then put 1 else 0. Cut Set Edges Cij =1, if jth cutset contains edge 1 f, g, d =0, otherwise 2 c, g, e 3 h V1 a V6 4 a, b V2 f V5 h b Edges a b c d e f g h 1 0 0 0 1 0 1 1 0 Cut Sets c e 2 0 0 1 0 1 0 1 0 3 0 0 0 0 0 0 0 1 4 1 1 0 0 0 0 0 0 V3 d V4
  • 6. Circuit can be defined as “A close walk in which no vertex/edge can appear twice”. If edge of graph is a part of given circuit then put 1 else 0. Circuit Edges Cij =1, if circuit contains edge 1 d, e, g =0, otherwise 2 c, f, g 3 c, d, e, f V1 a V6 4 a, b V2 f V5 h b Edges a b c d e f g h 1 0 0 0 1 1 0 1 0 Circuits c e 2 0 0 1 0 0 1 1 0 3 0 0 1 1 1 1 0 0 4 1 1 0 0 0 0 0 0 V3 d V4
  • 7. Path can be defined as “A open walk in which no vertex/edge can appear twice”. If edge of graph is a part of given path then put 1 else 0. Path Edges 1 a, f, h P( Vj,Vi)=1,if edge is on path Ex: P ( V1,V6) 2 a, c, g, h =0, otherwise 3 a, c, d, e, h 4 b, f, h V1 a V6 5 b, c, g, h 6 b,c, d, e, h V2 f V5 h Edges b a b c d e f g h 1 1 0 0 0 0 1 0 1 0 Paths c e 2 1 1 0 0 0 1 1 3 1 0 1 1 1 0 0 1 4 0 1 0 0 0 1 0 1 5 0 1 1 0 0 0 1 1 6 0 1 1 1 1 0 0 1 V3 d V4