The 3rd parameter to Graph() is a default Vertex to be supplied if there are edges with vertices that don't appear in the vertices RDD.
2 choices: 1) supply a "null" VertexAttributes: val graph = Graph(vertices, edges, VertexAttributes(...)) // fill in the attributes as makes sense 2) let GraphX supply a null instead val graph = Graph(vertices, edges) // vertices found in 'edges' but not in 'vertices' will be set to null ------------------------------------------------------------------------------- Robin East Spark GraphX in Action Michael Malak and Robin East Manning Publications Co. http://www.manning.com/books/spark-graphx-in-action -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/GraphX-create-graph-with-multiple-node-attributes-tp24827p24828.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org