I'm sorry, i didn't expressed clearly. Reference to the following Blod Underlined text.
cite from http://spark.apache.org/docs/latest/graphx-programming-guide.html " GraphLoader.edgeListFile provides a way to load a graph from a list of edges on disk. It parses an adjacency list of (source vertex ID, destination vertex ID) pairs of the following form, skipping comment lines that begin with #: # This is a comment 2 1 4 1 1 2 It creates a Graph from the specified edges, automatically creating any vertices mentioned by edges." Creating any vertices when create a Graph from specified edges that I think it's a good way, but now GraphLoader.edgeListFile load format is not allowed to set edge attribute in edge file, So I want to know GraphFrames has any plan about it or better ways. Thannks zjp_j...@163.com From: Felix Cheung Date: 2016-12-19 12:57 To: zjp_j...@163.com; user Subject: Re: GraphFrame not init vertices when load edges Or this is a better link: http://graphframes.github.io/quick-start.html _____________________________ From: Felix Cheung <felixcheun...@hotmail.com> Sent: Sunday, December 18, 2016 8:46 PM Subject: Re: GraphFrame not init vertices when load edges To: <zjp_j...@163.com>, user <user@spark.apache.org> Can you clarify? Vertices should be another DataFrame as you can see in the example here: https://github.com/graphframes/graphframes/blob/master/docs/quick-start.md From: zjp_j...@163.com <zjp_j...@163.com> Sent: Sunday, December 18, 2016 6:25:50 PM To: user Subject: GraphFrame not init vertices when load edges Hi, I fond GraphFrame when create edges not init vertiecs by default, has any plan about it or better ways? Thanks val e = sqlContext.createDataFrame(List( ("a", "b", "friend"), ("b", "c", "follow"), ("c", "b", "follow"), ("f", "c", "follow"), ("e", "f", "follow"), ("e", "d", "friend"), ("d", "a", "friend"), ("a", "e", "friend"))).toDF("src", "dst", "relationship") zjp_j...@163.com