Added a graph utility function that sorts the edges of a vertex by the neigbour's degree.