edmonds-karp algorithm

an algorithm for computing the maximum flow in a flow network in time
algorithm unwritten
length of a flow augmenting path:
we define the length of a flow augmenting path as the number of edges in it
the time complexity of this algorithm is
residual distance:
given a residual network we define a residual distance as the number of edges in the minimal path between and
if we run the algorithm on a residual network then for each vertex , the distance from to , , becomes greater after each flow improvement.
the number of flow augmenting paths in the edmonds-karp algorithm is at most