GraphX is Apache Spark's API for graphs and graph-parallel computation.
This code will create a Graph from a csv file. It will calculate the number of nodes, number of edges, node with Highest pagerank and also the node with highest indegree and outdegree.