SlideShare a Scribd company logo
NETWORK ANDTREE
IN GRAPHTHEORY
1
Presented by: The Camouflage
BSc.CSIT 2nd Semester
Gagan Puri
Rabin BK
Bikram Bhurtel
Prism Karki
Network flow
Spanning Tree
Tree traversal
References
2
Also known as a transportation network
It is a directed graph where each edge has a capacity and each
edge receives a flow
Often in operations research, a directed graph is called a
network, the vertices are called nodes and the edges are called
arcs
Network Flow
3
A network is a graph G = (V, E), where V are a set of
vertices and E are a set of edges
a non-negative function c: V × V → ℝ∞ is called the
capacity function
If two nodes in G are distinguished, a source s and a sink t,
then (G, c, s, t) is called a flow network
Definition
4
Source : no incoming edges
Sink : no outgoing edges
Slack : ( capacity – flow )
Augmented path : a path (u1, u2, ..., uk), where u1 = s, uk
= t, and cf (ui, ui + 1) > 0
Saturated : if flow = capacity
Unsaturated : if flow < capacity
Basic terms
5
Example: To find a maximum flow :
A network is at maximum flow if and only if there
is no augmenting path in the residual network Gf.
s → v → t
s → v → u → t
Fig: optimal solution 6
Used to model traffic in road system, circulation with diamonds, fluids in
pipes and anything similar in which sth travels through a network of nodes
Electrical distribution systems
Ecosystem network analysis
Maximum flow
Multi – commodity flow problem
Minimum cost flow problem
Circulation problem
Network with gains / generalised network
Source localization problem
Applications
7
For a simple graph G, Spanning tree is a subgraph of G.
It contains every vertex of G.
All the vertices are connected
The connected edges must not form a cycle
8
Spanning Tree
Simple graph Spanning tree
Not a tree since there
are small circuits and
closed cycles
It is a tree because
there is no closed cycle
and there is a single
path to every edge.
It is also a spanning tree
It has the smallest possible sum of weights of its edges
Algorithms used for constructing the minimum spanning tree
 Prim's Algorithm
 Kruskal's Algorithm
9
Minimum spanning tree
Step 1: Select the vertex at random
Step 2: Find all the edges that connect the tree to
new vertices, find the minimum and add it
to the tree
Step 3: Keep repeating step 2 until we get a
minimum spanning tree
10
Prim's AlgorithmPrim's Algorithm
11
Step 1:Sort all the edges from low weight to high
Step 2: Take the edge with the lowest weight and
add it to the spanning tree. If adding the
edge created a cycle, then reject this edge
Step 3: Keep adding edges until all
vertices are not included
12
Kruskal's Algorithm
13
14
15
16
17
18
19
20
References
Textbook reference:
• Discrete Math and its application,Kenneth H. Rosen
Web Reference:
 http://scanftree.com/Data_Structure/prim%27s-algorithm
 https://www.cse.ust.hk/~dekai/271/notes/L07/L07.pdf
 http://www.tutorvista.com/content/math/prims-algorithm/
21
Queries
22

More Related Content

PPT
3 Centrality
PPT
Data structure computer graphs
PPTX
Group and Community Detection in Social Networks
PPT
Disjoint sets
PPTX
Graph Theory
PDF
Community Detection in Social Media
PPTX
Graph theory
PPTX
Introduction to Graph Theory
3 Centrality
Data structure computer graphs
Group and Community Detection in Social Networks
Disjoint sets
Graph Theory
Community Detection in Social Media
Graph theory
Introduction to Graph Theory

What's hot (20)

PDF
Graph theory in network system
PDF
Graph theory and its applications
PPTX
Graph coloring
PPTX
Graph theory
PPTX
A Maximum Flow Min cut theorem for Optimizing Network
PPTX
Depth-First Search
PPTX
Connectivity of graphs
PPTX
Bayes Theorem
PPT
Graph theory presentation
PPTX
Real analysis
PPTX
Introduction to Graph Theory
PDF
Network centrality measures and their effectiveness
PPTX
Adjacency list
PPT
Coloring graphs
PPTX
Connected and disconnected graph
PPTX
Intro to probability
PPT
Support Vector Machines
PPTX
Kruskal’s algorithm
PDF
Graph theory
PPTX
Bayesian Belief Network and its Applications.pptx
Graph theory in network system
Graph theory and its applications
Graph coloring
Graph theory
A Maximum Flow Min cut theorem for Optimizing Network
Depth-First Search
Connectivity of graphs
Bayes Theorem
Graph theory presentation
Real analysis
Introduction to Graph Theory
Network centrality measures and their effectiveness
Adjacency list
Coloring graphs
Connected and disconnected graph
Intro to probability
Support Vector Machines
Kruskal’s algorithm
Graph theory
Bayesian Belief Network and its Applications.pptx
Ad

Similar to Network and Tree in Graph Theory (20)

PPTX
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
PPT
Graph Theory PPT presentation created by Selvam.
PPTX
My presentation minimum spanning tree
PDF
Shortest path by using suitable algorithm.pdf
PPTX
uva-201026072839.pptxvcvczcvzvcxbxcvbcxvbvcxbcx
PPTX
Minimum Spanning Tree (Data Structure and Algorithm)
PDF
Network analysis
PPTX
OR II - M3.pptx
PPT
Mit15 082 jf10_lec01
PPTX
Minimum Spanning Tree
PDF
04 15029 active node ijeecs 1570310145(edit)
PPT
mathematics of network science: basic definitions
PPTX
Data structure and algorithm
PPTX
Network Measures: Characterizing networks
PPTX
Minimum spanning tree
PPTX
1 sollins algorithm
PPTX
Y11 m02 networks
PDF
Ijciras1101
PPT
Network Models - modeling and simulation(lecture Three).ppt
PDF
Minimum Spanning Trees Artificial Intelligence
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
Graph Theory PPT presentation created by Selvam.
My presentation minimum spanning tree
Shortest path by using suitable algorithm.pdf
uva-201026072839.pptxvcvczcvzvcxbxcvbcxvbvcxbcx
Minimum Spanning Tree (Data Structure and Algorithm)
Network analysis
OR II - M3.pptx
Mit15 082 jf10_lec01
Minimum Spanning Tree
04 15029 active node ijeecs 1570310145(edit)
mathematics of network science: basic definitions
Data structure and algorithm
Network Measures: Characterizing networks
Minimum spanning tree
1 sollins algorithm
Y11 m02 networks
Ijciras1101
Network Models - modeling and simulation(lecture Three).ppt
Minimum Spanning Trees Artificial Intelligence
Ad

More from Rabin BK (20)

PPTX
Artificial Intelligence in E-commerce
PPTX
Three address code generation
PPTX
Consumer Oriented Application, Mercantile process and Mercantile models
PPTX
Clang compiler `
PPTX
Simple Mail Transfer Protocol
PPTX
HTML text formatting tags
PPTX
Data encryption in database management system
PPTX
Object Relational Database Management System(ORDBMS)
PPTX
Kolmogorov Smirnov
PPTX
Job sequencing in Data Strcture
PPTX
Stack Data Structure
PPTX
Bluetooth
PPTX
Data Science
PPTX
Graphics_3D viewing
PPTX
Neural Netwrok
PPTX
Watermarking in digital images
PPTX
Heun's Method
PPTX
Mutual Exclusion
PPTX
Systems Usage
PPTX
Manager of a company
Artificial Intelligence in E-commerce
Three address code generation
Consumer Oriented Application, Mercantile process and Mercantile models
Clang compiler `
Simple Mail Transfer Protocol
HTML text formatting tags
Data encryption in database management system
Object Relational Database Management System(ORDBMS)
Kolmogorov Smirnov
Job sequencing in Data Strcture
Stack Data Structure
Bluetooth
Data Science
Graphics_3D viewing
Neural Netwrok
Watermarking in digital images
Heun's Method
Mutual Exclusion
Systems Usage
Manager of a company

Recently uploaded (20)

PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Digital Logic Computer Design lecture notes
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
web development for engineering and engineering
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Sustainable Sites - Green Building Construction
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
PPT on Performance Review to get promotions
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Welding lecture in detail for understanding
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Digital Logic Computer Design lecture notes
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
web development for engineering and engineering
Lesson 3_Tessellation.pptx finite Mathematics
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Sustainable Sites - Green Building Construction
CYBER-CRIMES AND SECURITY A guide to understanding
additive manufacturing of ss316l using mig welding
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT on Performance Review to get promotions
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Welding lecture in detail for understanding
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Embodied AI: Ushering in the Next Era of Intelligent Systems
OOP with Java - Java Introduction (Basics)
Structs to JSON How Go Powers REST APIs.pdf
Internet of Things (IOT) - A guide to understanding
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026

Network and Tree in Graph Theory

  • 1. NETWORK ANDTREE IN GRAPHTHEORY 1 Presented by: The Camouflage BSc.CSIT 2nd Semester Gagan Puri Rabin BK Bikram Bhurtel Prism Karki
  • 2. Network flow Spanning Tree Tree traversal References 2
  • 3. Also known as a transportation network It is a directed graph where each edge has a capacity and each edge receives a flow Often in operations research, a directed graph is called a network, the vertices are called nodes and the edges are called arcs Network Flow 3
  • 4. A network is a graph G = (V, E), where V are a set of vertices and E are a set of edges a non-negative function c: V × V → ℝ∞ is called the capacity function If two nodes in G are distinguished, a source s and a sink t, then (G, c, s, t) is called a flow network Definition 4
  • 5. Source : no incoming edges Sink : no outgoing edges Slack : ( capacity – flow ) Augmented path : a path (u1, u2, ..., uk), where u1 = s, uk = t, and cf (ui, ui + 1) > 0 Saturated : if flow = capacity Unsaturated : if flow < capacity Basic terms 5
  • 6. Example: To find a maximum flow : A network is at maximum flow if and only if there is no augmenting path in the residual network Gf. s → v → t s → v → u → t Fig: optimal solution 6
  • 7. Used to model traffic in road system, circulation with diamonds, fluids in pipes and anything similar in which sth travels through a network of nodes Electrical distribution systems Ecosystem network analysis Maximum flow Multi – commodity flow problem Minimum cost flow problem Circulation problem Network with gains / generalised network Source localization problem Applications 7
  • 8. For a simple graph G, Spanning tree is a subgraph of G. It contains every vertex of G. All the vertices are connected The connected edges must not form a cycle 8 Spanning Tree Simple graph Spanning tree Not a tree since there are small circuits and closed cycles It is a tree because there is no closed cycle and there is a single path to every edge.
  • 9. It is also a spanning tree It has the smallest possible sum of weights of its edges Algorithms used for constructing the minimum spanning tree  Prim's Algorithm  Kruskal's Algorithm 9 Minimum spanning tree
  • 10. Step 1: Select the vertex at random Step 2: Find all the edges that connect the tree to new vertices, find the minimum and add it to the tree Step 3: Keep repeating step 2 until we get a minimum spanning tree 10 Prim's AlgorithmPrim's Algorithm
  • 11. 11
  • 12. Step 1:Sort all the edges from low weight to high Step 2: Take the edge with the lowest weight and add it to the spanning tree. If adding the edge created a cycle, then reject this edge Step 3: Keep adding edges until all vertices are not included 12 Kruskal's Algorithm
  • 13. 13
  • 14. 14
  • 15. 15
  • 16. 16
  • 17. 17
  • 18. 18
  • 19. 19
  • 20. 20
  • 21. References Textbook reference: • Discrete Math and its application,Kenneth H. Rosen Web Reference:  http://scanftree.com/Data_Structure/prim%27s-algorithm  https://www.cse.ust.hk/~dekai/271/notes/L07/L07.pdf  http://www.tutorvista.com/content/math/prims-algorithm/ 21