GIRAPH-895 : Trim the edges in Giraph (edunov via pavanka)