running compaction for vertices.