Re: a question of Graph build api

2014-12-06 Thread Takeshi Yamamuro
Hi, Yes, I think so. However, EdgePartitionBuilder might have edge lists as other types instead of Edge in a future. This is because the change can make fast graph construction. See also SPARK-1987. https://issues.apache.org/jira/browse/SPARK-1987 Thanks, takeshi On Fri, Dec 5, 2014 at 12:12

a question of Graph build api

2014-12-04 Thread jinkui.sjk
hi, all where build a graph from edge tuples with api Graph.fromEdgeTuples, the edges object type is RDD[Edge], inside of EdgeRDD.fromEdge, EdgePartitionBuilder.add func’s param is better to be Edge object. no need to create a new Edge object again. def fromEdgeTuples[VD: ClassTag](

a question of Graph build api

2014-12-04 Thread jinkui . sjk
hi, all where build a graph from edge tuples with api Graph.fromEdgeTuples, the edges object type is RDD[Edge], inside of EdgeRDD.fromEdge, EdgePartitionBuilder.add func’s param is better to be Edge object. no need to create a new Edge object again. def fromEdgeTuples[VD: ClassTag](