The project consists of 4 scala files:
- GraphXSample - This is the main class
- GenerateGraph - This class will generate the resultant graph using edges and vertices passed by the main class,on which we have to apply different algorithms
- AlgorithmSelection - This class contains a menu driven approach to allow user to select one of the multiple graph algorithms which can be applied on the graph.
- GraphXAlgorithm - This class contains implementation of algorithms like PageRank, Degree of separation and others provided by GraphX.
To run the SDK you will need **Java 1.8+, Scala 2.11.12, spark-core 2.4.3, spark-graphx 2.4.4 **.
The way to use this project is to clone it from github and build it using sbt.
sbt clean compile
sbt run
- Enter the option number for the graph algorithm to apply
- Output should be visible on the console.