`pred` must take a tuple because VertexSetRDD is an `RDD[(Vid, VD)]`, and `filter` is intended to provide a more efficient implementation of the RDD version.