Flow network

Flow network

In graph theory, a flow network is a directed graph where each edge has a capacity and each edge receives a flow. The amount of flow on an edge cannot exceed the capacity of the edge. Often in Operations Research, a directed graph is called a network, the vertices are called nodes and the edges are called arcs. A flow must satisfy the restriction that the amount of flow into a node equals the amount of flow out of it, except when it is a source, which has more outgoing flow, or sink, which has more incoming flow. A network can be used to model traffic in a road system, fluids in pipes, currents in an electrical circuit, or anything similar in which something travels through a network of nodes.



\ G(V,E) is a finite directed graph in which every edge \ (u,v) \in E has a non-negative, real-valued capacity \ c(u,v). If \ (u, v) \not \in E, we assume that \ c(u, v) = 0. We distinguish two vertices: a source \ s and a sink \ t. A flow network is a real function \ f:V \times V \rightarrow \mathbb{R} with the following three properties for all nodes \ u and \ v:

Capacity constraints: \ f(u,v) \le c(u,v). The flow along an edge cannot exceed its capacity.
Skew symmetry: \ f(u,v) = - f(v,u). The net flow from \ u to \ v must be the opposite of the net flow from \ v to \ u (see example).
Flow conservation: \ \sum_{w \in V} f(u,w) = 0, unless \ u=s or \ w=t. The net flow to a node is zero, except for the source, which "produces" flow, and the sink, which "consumes" flow.

Notice that \ f(u,v) is the net flow from \ u to \ v. If the graph represents a physical network, and if there is a real flow of, for example, 4 units from \ u to \ v, and a real flow of 3 units from \ v to \ u, we have \ f(u,v)=1 and \ f(v,u)=-1.

The residual capacity of an edge is \ c_f(u,v) = c(u,v) - f(u,v). This defines a residual network denoted \ G_f(V,E_f), giving the amount of available capacity. See that there can be an edge from \ u to \ v in the residual network, even though there is no edge from \ u to \ v in the original network. Since flows in opposite directions cancel out, decreasing the flow from \ v to \ u is the same as increasing the flow from \ u to \ v. An augmenting path is a path \ (u_1,u_2,\dots,u_k) in the residual network, where \ u_1=s, \ u_k=t, and \ c_f(u_i, u_{i+1}) > 0. A network is at maximum flow if and only if there is no augmenting path in the residual network.

Should one need to model a network with more than one source, a supersource is introduced to the graph.[1] This consists of a vertex connected to each of the sources with edges of infinite capacity, so as to act as a global source. A similar construct for sinks is called a supersink.[2]


A flow network showing flow and capacity

To the right you see a flow network with source labeled s, sink t, and four additional nodes. The flow and capacity is denoted f / c. Notice how the network upholds skew symmetry, capacity constraints and flow conservation. The total amount of flow from s to t is 5, which can be easily seen from the fact that the total outgoing flow from s is 5, which is also the incoming flow to t. We know that no flow appears or disappears in any of the other nodes.

Residual network for the above flow network, showing residual capacities

Below you see the residual network for the given flow. Notice how there is positive residual capacity on some edges where the original capacity is zero, for example for the edge (d,c). This flow is not a maximum flow. There is available capacity along the paths (s,a,c,t), (s,a,b,d,t) and (s,a,b,d,c,t), which are then the augmenting paths. The residual capacity of the first path is min(c(s,a) − f(s,a),c(a,c) − f(a,c),c(c,t) − f(c,t)) = min(5 − 3,3 − 2,2 − 1) = min(2,1,1) = 1. Notice that augmenting path (s,a,b,d,c,t) does not exist in the original network, but you can send flow along it, and still get a legal flow.

If this is a real network, there might actually be a flow of 2 from a to b, and a flow of 1 from b to a, but we only maintain the net flow.


Picture a series of water pipes, fitting into a network. Each pipe is of a certain diameter, so it can only maintain a flow of a certain amount of water. Anywhere that pipes meet, the total amount of water coming into that junction must be equal to the amount going out, otherwise we would quickly run out of water, or we would have a build up of water. We have a water inlet, which is the source, and an outlet, the sink. A flow would then be one possible way for water to get from source to sink so that the total amount of water coming out of the outlet is consistent. Intuitively, the total flow of a network is the rate at which water comes out of the outlet.

Flows can pertain to people or material over transportation networks, or to electricity over electrical distribution systems. For any such physical network, the flow coming into any intermediate node needs to equal the flow going out of that node. This conservation constraint was formalized as Kirchhoff's current law.

Flow networks also find applications in ecology: flow networks arise naturally when considering the flow of nutrients and energy between different organizations in a food web. The mathematical problems associated with such networks are quite different from those that arise in networks of fluid or traffic flow. The field of ecosystem network analysis, developed by Robert Ulanowicz and others, involves using concepts from information theory and thermodynamics to study the evolution of these networks over time.

The simplest and most common problem using flow networks is to find what is called the maximum flow, which provides the largest possible total flow from the source to the sink in a given graph. There are many other problems which can be solved using max flow algorithms, if they are appropriately modeled as flow networks, such as bipartite matching, the assignment problem and the transportation problem.

In a multi-commodity flow problem, you have multiple sources and sinks, and various "commodities" which are to flow from a given source to a given sink. This could be for example various goods that are produced at various factories, and are to be delivered to various given customers through the same transportation network.

In a minimum cost flow problem, each edge u,v has a given cost k(u,v), and the cost of sending the flow f(u,v) across the edge is f(u,v) \cdot k(u,v). The objective is to send a given amount of flow from the source to the sink, at the lowest possible price.

In a circulation problem, you have a lower bound l(u,v) on the edges, in addition to the upper bound c(u,v). Each edge also has a cost. Often, flow conservation holds for all nodes in a circulation problem, and there is a connection from the sink back to the source. In this way, you can dictate the total flow with l(t,s) and c(t,s). The flow circulates through the network, hence the name of the problem.

In a network with gains or generalized network each edge has a gain, a real number (not zero) such that, if the edge has gain g, and an amount x flows into the edge at its tail, then an amount gx flows out at the head.

See also


Further reading

  • George T. Heineman, Gary Pollice, and Stanley Selkow (2008). "Chapter 8:Network Flow Algorithms". Algorithms in a Nutshell. Oreilly Media. pp. 226–250. ISBN 978-0-596-51624-6. 
  • Ravindra K. Ahuja, Thomas L. Magnanti, and James B. Orlin (1993). Network Flows: Theory, Algorithms and Applications. Prentice Hall. ISBN 0-13-617549-X. 
  • Bollobás, Béla (1979). Graph Theory: An Introductory Course. Heidelberg: Springer-Verlag. ISBN 3-540-90399-2. 
  • Chartrand, Gary & Oellermann, Ortrud R. (1993). Applied and Algorithmic Graph Theory. New York: McGraw-Hill. ISBN 0-07-557101-3. 
  • Even, Shimon (1979). Graph Algorithms. Rockville, Maryland: Computer Science Press. ISBN 0-914894-21-8. 
  • Gibbons, Alan (1985). Algorithmic Graph Theory. Cambridge: Cambridge University Press. ISBN 0-521-28881-9 ISBN 0-521-24659-8. 
  • Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein (2001) [1990]. "26". Introduction to Algorithms (2nd edition ed.). MIT Press and McGraw-Hill. pp. 696–697. ISBN 0-262-03293-7. 

External links

Wikimedia Foundation. 2010.

Look at other dictionaries:

  • Network flow — may refer to: Flow network Traffic flow (computer networking) See also Flow (disambiguation) This disambiguation page lists articles associated with the same title. If an …   Wikipedia

  • Flow — may refer to:In science and technology: *Dataflow, computing term related to the flow of messages between software components *Environmental flow, the amount of water necessary in a watercourse to maintain a healthy ecosystem *Flow (computer… …   Wikipedia

  • Network — and networking may refer to: Contents 1 Mathematics 2 Electric, electronic, biological, and biosocial 3 Proper nouns (names) 4 See also …   Wikipedia

  • Flow (computer networking) — In a Packet Switching network, a packet flow or traffic flow is a sequence of packets from one particular source (e.g. a computer host, process or class of service) to a single destination (another computer host, multicast group, broadcast domain …   Wikipedia

  • Network coding — is a technique where, instead of simply relaying the packets of information they receive, the nodes of a network will take several packets and combine them together for transmission. This can be used to attain the maximum possible information… …   Wikipedia

  • Network congestion avoidance — is a process used in computer networks to avoid congestion.The fundamental problem is that all network resources are limited, including router processing time and link throughput. Eg.: *today s (2006) Wireless LAN effective bandwidth throughput… …   Wikipedia

  • Network calculus — is a theoretical framework for analysing performance guarantees in computer networks. As traffic flows through a network it is subject to constraints imposed by the system components, for example: link capacity traffic shapers (leaky buckets)… …   Wikipedia

  • Network architecture — is the design of a communications network. It is a framework for the specification of a network s physical components and their functional organization and configuration, its operational principles and procedures, as well as data formats used in… …   Wikipedia

  • Network emulation — is a technique where the properties of an existing, planned and/or non ideal network are simulated in order to assess performance, predict the impact of change, or otherwise optimize technology decision making. Contents 1 Methods of emulation 2… …   Wikipedia

  • Network Improvement — is a large subject that encompasses all actions that can be taken to improve computer or digital networks. Network Traffic Control A network traffic controller is a mechanism to control the flow of traffic on the network. The controller may be… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”