Found bug in residual function if sink node had an adjacency list