Added handling in reducer for outDegree 0