Changed the order of vertices

Like in GraphChi algorithm.