September 2017
Beginner to intermediate
360 pages
8h 13m
English
A graph can be created as per the following statements in ExecutionEnvironment:
ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();DataSet<Tuple2<String, Long>> vertexTuples = env.readCsvFile("path/to/vertex/input").types(String.class, Long.class);DataSet<Tuple3<String, String, Double>> edgeTuples = env.readCsvFile("path/to/edge/input").types(String.class, String.class, Double.class);Graph<String, Long, Double> graph = Graph.fromTupleDataSet(vertexTuples, edgeTuples, env);
ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();List<Vertex<Long, Long>> vertexList = new ArrayList...List<Edge<Long, String>> edgeList = ...
Read now
Unlock full access