May 17, 2021 Spark Programming guide
The first step is to introduce Spark and GraphX into your project, as shown below
mport org.apache.spark._
import org.apache.spark.graphx._
// To make some of the examples work we will also need RDD
import org.apache.spark.rdd.RDD
If you don't use Spark shell, you'll also need SparkContext.