From edges

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.114.28