SlideShare a Scribd company logo
1 of 14
GRAPH-
TERMINOLOGY
CONTENTS:
1.Overview of Graphs in Data Structure
2.Graph Terminologies in Data Structure
3.Types of Graphs in Data Structure
Overview of Graphs in Data Structure
Let us understand what is a graph in the data structure. Graphs
are non-linear data structures that are made up of a set of nodes
(or vertices), connected by edges (or arcs). Nodes are entities
where the data is stored and their relationships are expressed
using edges. Edges may be directed or undirected. Graphs
demonstrate complicated relationships with ease and are used to
solve many real-life problems.
For example, Facebook uses a
graph data structure that consists
of a group of entities and their
relationships. On Facebook, every
user, photo, post, page, place, etc.
that has data is represented with a
node. Every edge from one node to
another represents their
relationships, friendships,
ownerships, tags, etc. Whenever a
user posts a photo, comments on a
post, etc., a new edge is created for
that relationship. Both nodes and
edges have meta-data associated
with them.
Graph Terminologies in
Data Structure:
• Vertex
• Every individual data element is
called a vertex or a node. In the above
image, A, B, C, D & E are the vertices.
• Edge (Arc)
• It is a connecting link between
two nodes or vertices. Each edge has two
ends and is represented as starting
Vertex , ending Vertex .
5
Directed Edge It is a unidirectional edge.
Weighted Edge An edge with value (cost) on it.
Degree
The total number of edges connected to a
vertex in a graph.
Indegree
The total number of incoming edges connected
to a vertex.
Outdegree
The total number of outgoing edges connected
to a vertex.
Self-loop
An edge is called a self-loop if its two endpoints
coincide with each other.
Adjacency
Vertices are said to be adjacent to one another
if there is an edge connecting them
Types of Graphs in Data Structure
The most common types of graphs in the data structure are
mentioned below:
DIRECTED GRAPH UNDIRECTED GRAPH WEIGHTED GRAPH UNWEIGHTED GRAPH
DIRECTED -
GRAPH
UNDIRECTED-GRAPH
• An undirected graph is graph, i.e.,
a set of objects (called vertices or
nodes) that are connected together,
where all the edges are
bidirectional. An undirected graph is
sometimes called an
undirected network. In contrast, a
graph where the edges point in a
direction is called a directed graph.
• When drawing an undirected
graph, the edges are typically drawn
as lines between pairs of nodes, as
illustrated in the following figure.
WEIGHTED-GRAPH
• In many applications, each edge of a graph has
an associated numerical value, called a weight.
Usually, the edge weights are nonnegative
integers. Weighted graphs may be either directed
or undirected.
• The weight of an edge is often referred to as the
"cost" of the edge. In applications, the weight may
be a measure of the length of a route, the capacity
of a line, the energy required to move between
locations along a route, etc.
WEIGHTED GRAPH
It is not mandatory in a weighted
graph that all nodes have distinct
weight, i.e. some edges may
have same weights.
UNWEIGHTED-
GRAPH
It is not mandatory in a weighted graph
that all nodes have distinct weight, i.e.
some edges may have same weights.
Applications of Unweighted Graph:
•Unweighted graphs are used to represent data that
are not related in terms of magnitude.
•Unweighted graphs are used to represent
computation flow.
Real-Time Applications of Unweighted
Graph:
•Unweighted graphs can be used to solve puzzles.
•It can be used to represent a circuit diagram.
•It can be used in social media sites to find whether
two users are connected or not.
•It is used in Hamiltonian graphs which have many
practical applications like genome mapping to
combine many tiny fragments of genetic code.
UNWEIGHTED
GRAPH
• Advantages of Unweighted Graph:
• Unweighted graphs can be used to implement
tree data structures.
• Unweighted graphs are used in many
algorithms like DFS and BFS.
• Helps in optimal visualization of interrelated
problems which are not related in terms of
magnitude.
• Disadvantages:
• The unweighted graphs do not have edge
weight. Hence, cannot be used for shortest path
evaluation or applications which require the
distance between the nodes.

More Related Content

Similar to Graph-terminology.pptx

Graph Databases: Trends in the Web of Data
Graph Databases: Trends in the Web of DataGraph Databases: Trends in the Web of Data
Graph Databases: Trends in the Web of DataMarko Rodriguez
 
Chapter9 graph data structure
Chapter9  graph data structureChapter9  graph data structure
Chapter9 graph data structureMahmoud Alfarra
 
Tdm recent trends
Tdm recent trendsTdm recent trends
Tdm recent trendsKU Leuven
 
135. Graphic Presentation
135. Graphic Presentation135. Graphic Presentation
135. Graphic PresentationLAKSHMANAN S
 
Graph Analysis over Relational Database. Roberto Franchini - Arcade Analytics
Graph Analysis over Relational Database. Roberto Franchini - Arcade AnalyticsGraph Analysis over Relational Database. Roberto Franchini - Arcade Analytics
Graph Analysis over Relational Database. Roberto Franchini - Arcade AnalyticsData Driven Innovation
 
VANU no sql ppt.pptx
VANU no sql ppt.pptxVANU no sql ppt.pptx
VANU no sql ppt.pptxMJeyavarthini
 
DATA GRAPHICS 8th Sem.pdf
DATA GRAPHICS 8th Sem.pdfDATA GRAPHICS 8th Sem.pdf
DATA GRAPHICS 8th Sem.pdfRavinandan A P
 
Lecture 2-PPT.pdf
Lecture 2-PPT.pdfLecture 2-PPT.pdf
Lecture 2-PPT.pdfRAJKAMAL282
 
Lecture 2-PPT statistics.pdf
Lecture 2-PPT statistics.pdfLecture 2-PPT statistics.pdf
Lecture 2-PPT statistics.pdfDrSJayashree
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2showslidedump
 
NON-LINEAR DATA STRUCTURE-Graphs.pptx
NON-LINEAR DATA STRUCTURE-Graphs.pptxNON-LINEAR DATA STRUCTURE-Graphs.pptx
NON-LINEAR DATA STRUCTURE-Graphs.pptxRajitha Reddy Alugati
 
Vector data model
Vector data model Vector data model
Vector data model Pramoda Raj
 
Vector data model
Vector data modelVector data model
Vector data modelPramoda Raj
 
data structures and algorithms Unit 2
data structures and algorithms Unit 2data structures and algorithms Unit 2
data structures and algorithms Unit 2infanciaj
 
Graph analytic and machine learning
Graph analytic and machine learningGraph analytic and machine learning
Graph analytic and machine learningStanley Wang
 
Skiena algorithm 2007 lecture10 graph data strctures
Skiena algorithm 2007 lecture10 graph data strcturesSkiena algorithm 2007 lecture10 graph data strctures
Skiena algorithm 2007 lecture10 graph data strctureszukun
 
Create swath profiles in GRASS GIS
Create swath profiles in GRASS GISCreate swath profiles in GRASS GIS
Create swath profiles in GRASS GISSkyler Sorsby
 

Similar to Graph-terminology.pptx (20)

Graph Databases: Trends in the Web of Data
Graph Databases: Trends in the Web of DataGraph Databases: Trends in the Web of Data
Graph Databases: Trends in the Web of Data
 
Chapter9 graph data structure
Chapter9  graph data structureChapter9  graph data structure
Chapter9 graph data structure
 
Tdm recent trends
Tdm recent trendsTdm recent trends
Tdm recent trends
 
135. Graphic Presentation
135. Graphic Presentation135. Graphic Presentation
135. Graphic Presentation
 
Graph Analysis over Relational Database. Roberto Franchini - Arcade Analytics
Graph Analysis over Relational Database. Roberto Franchini - Arcade AnalyticsGraph Analysis over Relational Database. Roberto Franchini - Arcade Analytics
Graph Analysis over Relational Database. Roberto Franchini - Arcade Analytics
 
Vanmathy no sql
Vanmathy no sql Vanmathy no sql
Vanmathy no sql
 
VANU no sql ppt.pptx
VANU no sql ppt.pptxVANU no sql ppt.pptx
VANU no sql ppt.pptx
 
DATA GRAPHICS 8th Sem.pdf
DATA GRAPHICS 8th Sem.pdfDATA GRAPHICS 8th Sem.pdf
DATA GRAPHICS 8th Sem.pdf
 
Lecture 2-PPT.pdf
Lecture 2-PPT.pdfLecture 2-PPT.pdf
Lecture 2-PPT.pdf
 
Lecture 2-PPT statistics.pdf
Lecture 2-PPT statistics.pdfLecture 2-PPT statistics.pdf
Lecture 2-PPT statistics.pdf
 
Document 8 1.pdf
Document 8 1.pdfDocument 8 1.pdf
Document 8 1.pdf
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
 
NON-LINEAR DATA STRUCTURE-Graphs.pptx
NON-LINEAR DATA STRUCTURE-Graphs.pptxNON-LINEAR DATA STRUCTURE-Graphs.pptx
NON-LINEAR DATA STRUCTURE-Graphs.pptx
 
Vector data model
Vector data model Vector data model
Vector data model
 
Vector data model
Vector data modelVector data model
Vector data model
 
data structures and algorithms Unit 2
data structures and algorithms Unit 2data structures and algorithms Unit 2
data structures and algorithms Unit 2
 
Graph analytic and machine learning
Graph analytic and machine learningGraph analytic and machine learning
Graph analytic and machine learning
 
Skiena algorithm 2007 lecture10 graph data strctures
Skiena algorithm 2007 lecture10 graph data strcturesSkiena algorithm 2007 lecture10 graph data strctures
Skiena algorithm 2007 lecture10 graph data strctures
 
Techniques for graph
Techniques for graphTechniques for graph
Techniques for graph
 
Create swath profiles in GRASS GIS
Create swath profiles in GRASS GISCreate swath profiles in GRASS GIS
Create swath profiles in GRASS GIS
 

Recently uploaded

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
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
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
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
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
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
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
 

Recently uploaded (20)

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...
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
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
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
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
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
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
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
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
 

Graph-terminology.pptx

  • 2. CONTENTS: 1.Overview of Graphs in Data Structure 2.Graph Terminologies in Data Structure 3.Types of Graphs in Data Structure
  • 3. Overview of Graphs in Data Structure Let us understand what is a graph in the data structure. Graphs are non-linear data structures that are made up of a set of nodes (or vertices), connected by edges (or arcs). Nodes are entities where the data is stored and their relationships are expressed using edges. Edges may be directed or undirected. Graphs demonstrate complicated relationships with ease and are used to solve many real-life problems.
  • 4. For example, Facebook uses a graph data structure that consists of a group of entities and their relationships. On Facebook, every user, photo, post, page, place, etc. that has data is represented with a node. Every edge from one node to another represents their relationships, friendships, ownerships, tags, etc. Whenever a user posts a photo, comments on a post, etc., a new edge is created for that relationship. Both nodes and edges have meta-data associated with them.
  • 5. Graph Terminologies in Data Structure: • Vertex • Every individual data element is called a vertex or a node. In the above image, A, B, C, D & E are the vertices. • Edge (Arc) • It is a connecting link between two nodes or vertices. Each edge has two ends and is represented as starting Vertex , ending Vertex . 5
  • 6. Directed Edge It is a unidirectional edge. Weighted Edge An edge with value (cost) on it. Degree The total number of edges connected to a vertex in a graph. Indegree The total number of incoming edges connected to a vertex. Outdegree The total number of outgoing edges connected to a vertex. Self-loop An edge is called a self-loop if its two endpoints coincide with each other. Adjacency Vertices are said to be adjacent to one another if there is an edge connecting them
  • 7. Types of Graphs in Data Structure The most common types of graphs in the data structure are mentioned below: DIRECTED GRAPH UNDIRECTED GRAPH WEIGHTED GRAPH UNWEIGHTED GRAPH
  • 9. UNDIRECTED-GRAPH • An undirected graph is graph, i.e., a set of objects (called vertices or nodes) that are connected together, where all the edges are bidirectional. An undirected graph is sometimes called an undirected network. In contrast, a graph where the edges point in a direction is called a directed graph. • When drawing an undirected graph, the edges are typically drawn as lines between pairs of nodes, as illustrated in the following figure.
  • 10.
  • 11. WEIGHTED-GRAPH • In many applications, each edge of a graph has an associated numerical value, called a weight. Usually, the edge weights are nonnegative integers. Weighted graphs may be either directed or undirected. • The weight of an edge is often referred to as the "cost" of the edge. In applications, the weight may be a measure of the length of a route, the capacity of a line, the energy required to move between locations along a route, etc.
  • 12. WEIGHTED GRAPH It is not mandatory in a weighted graph that all nodes have distinct weight, i.e. some edges may have same weights.
  • 13. UNWEIGHTED- GRAPH It is not mandatory in a weighted graph that all nodes have distinct weight, i.e. some edges may have same weights. Applications of Unweighted Graph: •Unweighted graphs are used to represent data that are not related in terms of magnitude. •Unweighted graphs are used to represent computation flow. Real-Time Applications of Unweighted Graph: •Unweighted graphs can be used to solve puzzles. •It can be used to represent a circuit diagram. •It can be used in social media sites to find whether two users are connected or not. •It is used in Hamiltonian graphs which have many practical applications like genome mapping to combine many tiny fragments of genetic code.
  • 14. UNWEIGHTED GRAPH • Advantages of Unweighted Graph: • Unweighted graphs can be used to implement tree data structures. • Unweighted graphs are used in many algorithms like DFS and BFS. • Helps in optimal visualization of interrelated problems which are not related in terms of magnitude. • Disadvantages: • The unweighted graphs do not have edge weight. Hence, cannot be used for shortest path evaluation or applications which require the distance between the nodes.