Description
After caching a graph, its edge and vertex RDDs still return StorageLevel.None.
Reproduce error:
import org.apache.spark.graphx.{Edge, Graph} val edges = Seq( Edge[Double](0, 1, 0), Edge[Double](1, 2, 0), Edge[Double](2, 3, 0), Edge[Double](3, 4, 0)) val g = Graph.fromEdges[Double,Double](sc.parallelize(edges), 0) g.vertices.getStorageLevel // returns value for StorageLevel.None g.edges.getStorageLevel // returns value for StorageLevel.None g.cache() g.vertices.count() g.edges.count() g.vertices.getStorageLevel // returns value for StorageLevel.None g.edges.getStorageLevel // returns value for StorageLevel.None