I was reading about Dinic's Algorithm to solve the Max Flow problem and the algorithm states the following for a graph G given source S and sink T:
- Set the flow of every edge to 0
- Construct the level graph GL from Gf (where Gf is residual graph)
- Find blocking flow in GL
- Add augmenting flows and go back to 2
After some research online I understood how GL is computed provided the T lies on the last level or T is the farthest number of hops away from S.
However I do not understand how this is done when there are vertices that are farther away from S than T is from S.
For example in the image below I understand how to construct GL for the residual graph Gf shown in Diagram 1 however I am unsure as to how to draw the level graph GL for the residual graph shown in Diagram 2.
How can this be done?
The image: