pass mergeFunc to VertexPartitionBase, where merge is handled