public static < K , VV , EV > Graph < K , VV , EV > fromTupleDataSet ( DataSet < Tuple2 < K , VV > > vertices , DataSet < Tuple3 < K , K , EV > > edges , ExecutionEnvironment context ) { DataSet < Vertex < K , VV > > vertexDataSet = vertices . map ( new Tuple2ToVertexMap <> ( ) ) . name ( "Type conversion" ) ; DataSet < Edge < K , EV > > edgeDataSet = edges . map ( new Tuple3ToEdgeMap <> ( ) ) . name ( "Type conversion" ) ; return fromDataSet ( vertexDataSet , edgeDataSet , context ) ; }
Creates a graph from a DataSet of Tuple2 objects for vertices and Tuple3 objects for edges .