public static < K , EV > Graph < K , NullValue , EV > fromCollection ( Collection < Edge < K , EV > > edges , ExecutionEnvironment context ) { return fromDataSet ( context . fromCollection ( edges ) , context ) ; }
Creates a graph from a Collection of edges . Vertices are created automatically and their values are set to NullValue .