To summarize, GraphX offers several methods and operators for transforming graph elements and modifying its structure. We can use graph-specific operators, which transform a graph into a new one. In addition, we can use special methods that operate on VertexRDD
and EdgeRDD
collections. Moreover, we used join methods to combine graph data with other datasets. You can use all these methods to wrangle new graph datasets and put them in to a shape that suits your specific needs.
In the next chapter, you will learn how to create custom graph operators of your own using generic optimized methods, such as aggregateMessages
and mapReduceTriplets
.