Graphs can also be created using only edges as follows:
Graph<string, string> graph = Graph.fromEdges(edgeRDD.rdd(), "",StorageLevel.MEMORY_ONLY(), StorageLevel.MEMORY_ONLY(), stringTag, stringTag);
However in this case, there is no property associated with vertices. Map transformation needs to execute on vertices to associate the property with vertices. We will discuss map transformation on graphs in the next section.