I am new in scala and spark-graphX.
How can I declare spark-graphx variable as global variable in scala.
I have a method to create graph with spark-graphX and it is successful. Now , I want to retrieve graph details from another method. For that, I need to declare graph variable as global. Please suggest how can I do that