Algorithm now works on easy graph.