Professional Documents
Culture Documents
22 Network Flow
22 Network Flow
22 Network Flow
Dr. D. P. Acharjya
Professor, SCOPE
SJT Annex – 201 E
2/4/2024 Dr. D. P. Acharjya 1
Flow Network
A Flow network can be considered as a
graph theoretic optimization problem.
A flow network is a directed graph G = (V,
E), in which every edge (u, v)E is having a
capacity c(u, v). If (u, v)E, then c(u, v)=0.
Therefore, c(u, v) 0.
Let s be the source vertex and t be the sink
vertex in the flow network.
2/4/2023 Dr. D. P. Acharjya 2
An Illustration
The source vertex is 0
The sink vertex is 5
c(0, 1) = 16
c(0, 2) = 13
c(3, 5) = 20
Objective
Given a flow network, our objective is to find a
maximum flow value that a flow network may
have.
2/4/2023 Dr. D. P. Acharjya 5
Continued…
It means that total flow out of the source is
equal to the total flow into the sink.
f(s, v) = f | = f(v, t) for v V
An example of flow network with capacity
and flow. The edges are labelled with f(u, v)
/ c(u, v).
Initialization:
f(0, 1) = 0, f(0, 2) = 0, f(1, 2) = 0, f(2, 1) = 0, f(1, 3) = 0,
f(3, 2) = 0, f(2, 4) = 0, f(4, 3) = 0, f(3, 5) = 0, f(4, 5) = 0