Content deleted Content added
Line 112:
===Discharge===
In ''relabel-to-front'', a ''discharge'' on a node ''u'' is the following:
Function Discharge(u):
while excess(u) > 0:
if (u.currentNeighbour != NIL):
push(u, u.currentNeighbour);
u.currentNeighbour = u.nextNeighbour;
else:
relabel(u);
u.currentNeighbour = u.headOfNeighbourList; //start again at the beginning of the neighbour list
===Relabel-to-Front===
|