Skip to content

Flow Networks

Augmenting Path Chosen by Edmonds-Karp Algorithm

Based on the 2015 exam set

  1. Draw a new graph, called the residual network, with the same vertices as the original but without any edges
  2. For each set of vertices connected by an edge in the original flow network, decide from the following formula if they should be connected in the residual network

img

  1. The algorithm chooses the path with the lowest flow in the residual network using breath first search (BFS)

  2. The first line in the formula expresses that the arrow should go in the same direction as in the original flow network

  3. The second line in the formula expresses that the arrow should go in the opposite direction as in the original flow network
  4. The third line in the formula expresses that non connected vertices should not be considered

  5. The function f denotes the flow, the first number

  6. The function c denotes the capacity, the last number
  7. Eventually, set u and v to the two vertices involved in the path
  8. If the result is 0 in any case, do not draw the edge in the residual network

  9. See the example below

img


Last update: June 6, 2020