avoid using this.type in Jave API
removing redundant methods in EdgeRDD and VertexRDD